diff --git "a/medomni/models.build/module.models.unet3d.buildingblocks.cpp" "b/medomni/models.build/module.models.unet3d.buildingblocks.cpp" deleted file mode 100644--- "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; -} -