diff --git "a/medomni/models.build/module.models.unet3d.metrics.cpp" "b/medomni/models.build/module.models.unet3d.metrics.cpp" deleted file mode 100644--- "a/medomni/models.build/module.models.unet3d.metrics.cpp" +++ /dev/null @@ -1,26893 +0,0 @@ -/* Generated code for Python module 'models.unet3d.metrics' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$metrics" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$metrics; -PyDictObject *moduledict_models$unet3d$metrics; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[252]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.metrics")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$metrics(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.metrics"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_d1e5352fa1a9fbab176ce0366f74b972; -static PyCodeObject *codeobj_c7d769025392d480a661ed7525d49b57; -static PyCodeObject *codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0; -static PyCodeObject *codeobj_6a79547a3227bd3687d03320c888a7d5; -static PyCodeObject *codeobj_e88cbe919e4943422eaca3092583f68c; -static PyCodeObject *codeobj_9dcbcaa61a62b4193359e4eafa1dff12; -static PyCodeObject *codeobj_8e5ee399b651fc84fb09e0543608ba47; -static PyCodeObject *codeobj_5fc270cde0051c2eaf563a16fdfd133c; -static PyCodeObject *codeobj_2bba83743ec6097e610836f64263d12c; -static PyCodeObject *codeobj_e59924c010f350a33847b7bc37fb8c13; -static PyCodeObject *codeobj_b75ff7e24434e35dfc56d4768e73ec18; -static PyCodeObject *codeobj_a46b4a5c8a31bf4bad1959b4462967d8; -static PyCodeObject *codeobj_ea86a78d4b88f338243492fda90f9024; -static PyCodeObject *codeobj_72a00a732f540edac0bacfbeb9ebea2b; -static PyCodeObject *codeobj_739414be80f1099a2cddef3246c0c91d; -static PyCodeObject *codeobj_30651049ccf86cdd063b55ec7a4fa364; -static PyCodeObject *codeobj_2d44772b57531805600dabf6c833f211; -static PyCodeObject *codeobj_addffaf71f67b562ba4f792bfe1d9f33; -static PyCodeObject *codeobj_c0f8ba1eff149bb00d08b0021f15f590; -static PyCodeObject *codeobj_37251eb0c36bb09af4c0657f634957f5; -static PyCodeObject *codeobj_3683e3c7caa72ba2b301b3459a3c874e; -static PyCodeObject *codeobj_15029efea78ca37b23d40989b01f6a0a; -static PyCodeObject *codeobj_fe4dd1bb443ed6d52978af57ca08be53; -static PyCodeObject *codeobj_50a9020e6a51f1105daf1f222e909ae4; -static PyCodeObject *codeobj_c01d4c493e093c7de00d919c7dbc97f3; -static PyCodeObject *codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f; -static PyCodeObject *codeobj_7840753a58ffee472a48045eef486f18; -static PyCodeObject *codeobj_914854f2ce28cebe09f6c205cabe789a; -static PyCodeObject *codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5; -static PyCodeObject *codeobj_1d51fefa562de680476f0ff4599fe161; -static PyCodeObject *codeobj_6743357ccf7c82940fdd3986d828807c; -static PyCodeObject *codeobj_a4b23dac5778bf03565b51ee2cf73c40; -static PyCodeObject *codeobj_6d22b487fe6bb506aeab8c6f44f9fb50; -static PyCodeObject *codeobj_5da5d8dd8341dd90a301f5c1751530a7; -static PyCodeObject *codeobj_c463a7dbb13c425ed40fd700772abbe8; -static PyCodeObject *codeobj_e3c6ef6ba02f733011711ea56309b825; -static PyCodeObject *codeobj_fb00d90ebe317fe797e6b0aaf6808223; -static PyCodeObject *codeobj_28390b239ba9d51ee3f330d3fa1ea492; -static PyCodeObject *codeobj_299471fa28284ce856fcc2bb0f99954f; -static PyCodeObject *codeobj_5939483b3ea62df720d54e2d3cdb595f; -static PyCodeObject *codeobj_8f9bfd09bcf73e307b173aa11c64832f; -static PyCodeObject *codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27; -static PyCodeObject *codeobj_1b065ad043e94dde4abbeb05ae11c727; -static PyCodeObject *codeobj_1fe68f10d21aab4314bc2d9433ea7e6d; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[221]); CHECK_OBJECT(module_filename_obj); - codeobj_d1e5352fa1a9fbab176ce0366f74b972 = MAKE_CODEOBJECT(module_filename_obj, 162, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[222], mod_consts[223], NULL, 1, 0, 0); - codeobj_c7d769025392d480a661ed7525d49b57 = MAKE_CODEOBJECT(module_filename_obj, 305, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[222], mod_consts[224], NULL, 1, 0, 0); - codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[225], NULL, NULL, 0, 0, 0); - codeobj_6a79547a3227bd3687d03320c888a7d5 = MAKE_CODEOBJECT(module_filename_obj, 107, CO_NOFREE, mod_consts[171], mod_consts[226], NULL, 0, 0, 0); - codeobj_e88cbe919e4943422eaca3092583f68c = MAKE_CODEOBJECT(module_filename_obj, 333, CO_NOFREE, mod_consts[195], mod_consts[226], NULL, 0, 0, 0); - codeobj_9dcbcaa61a62b4193359e4eafa1dff12 = MAKE_CODEOBJECT(module_filename_obj, 357, CO_NOFREE, mod_consts[200], mod_consts[226], NULL, 0, 0, 0); - codeobj_8e5ee399b651fc84fb09e0543608ba47 = MAKE_CODEOBJECT(module_filename_obj, 182, CO_NOFREE, mod_consts[176], mod_consts[226], NULL, 0, 0, 0); - codeobj_5fc270cde0051c2eaf563a16fdfd133c = MAKE_CODEOBJECT(module_filename_obj, 382, CO_NOFREE, mod_consts[205], mod_consts[226], NULL, 0, 0, 0); - codeobj_2bba83743ec6097e610836f64263d12c = MAKE_CODEOBJECT(module_filename_obj, 15, CO_NOFREE, mod_consts[155], mod_consts[226], NULL, 0, 0, 0); - codeobj_e59924c010f350a33847b7bc37fb8c13 = MAKE_CODEOBJECT(module_filename_obj, 223, CO_NOFREE, mod_consts[182], mod_consts[226], NULL, 0, 0, 0); - codeobj_b75ff7e24434e35dfc56d4768e73ec18 = MAKE_CODEOBJECT(module_filename_obj, 260, CO_NOFREE, mod_consts[187], mod_consts[226], NULL, 0, 0, 0); - codeobj_a46b4a5c8a31bf4bad1959b4462967d8 = MAKE_CODEOBJECT(module_filename_obj, 417, CO_NOFREE, mod_consts[217], mod_consts[226], NULL, 0, 0, 0); - codeobj_ea86a78d4b88f338243492fda90f9024 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_NOFREE, mod_consts[163], mod_consts[226], NULL, 0, 0, 0); - codeobj_72a00a732f540edac0bacfbeb9ebea2b = MAKE_CODEOBJECT(module_filename_obj, 404, CO_NOFREE, mod_consts[212], mod_consts[226], NULL, 0, 0, 0); - codeobj_739414be80f1099a2cddef3246c0c91d = MAKE_CODEOBJECT(module_filename_obj, 27, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_30651049ccf86cdd063b55ec7a4fa364 = MAKE_CODEOBJECT(module_filename_obj, 412, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_2d44772b57531805600dabf6c833f211 = MAKE_CODEOBJECT(module_filename_obj, 425, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_addffaf71f67b562ba4f792bfe1d9f33 = MAKE_CODEOBJECT(module_filename_obj, 272, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[228], NULL, 3, 0, 0); - codeobj_c0f8ba1eff149bb00d08b0021f15f590 = MAKE_CODEOBJECT(module_filename_obj, 45, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[229], NULL, 3, 0, 0); - codeobj_37251eb0c36bb09af4c0657f634957f5 = MAKE_CODEOBJECT(module_filename_obj, 124, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[230], NULL, 3, 0, 0); - codeobj_3683e3c7caa72ba2b301b3459a3c874e = MAKE_CODEOBJECT(module_filename_obj, 24, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[231], NULL, 2, 0, 0); - codeobj_15029efea78ca37b23d40989b01f6a0a = MAKE_CODEOBJECT(module_filename_obj, 224, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[232], mod_consts[226], 6, 0, 0); - codeobj_fe4dd1bb443ed6d52978af57ca08be53 = MAKE_CODEOBJECT(module_filename_obj, 409, CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[233], NULL, 1, 0, 0); - codeobj_50a9020e6a51f1105daf1f222e909ae4 = MAKE_CODEOBJECT(module_filename_obj, 422, CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[233], NULL, 1, 0, 0); - codeobj_c01d4c493e093c7de00d919c7dbc97f3 = MAKE_CODEOBJECT(module_filename_obj, 261, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[234], NULL, 4, 0, 0); - codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f = MAKE_CODEOBJECT(module_filename_obj, 37, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[235], NULL, 3, 0, 0); - codeobj_7840753a58ffee472a48045eef486f18 = MAKE_CODEOBJECT(module_filename_obj, 338, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[236], mod_consts[226], 5, 0, 0); - codeobj_914854f2ce28cebe09f6c205cabe789a = MAKE_CODEOBJECT(module_filename_obj, 363, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[237], mod_consts[226], 4, 0, 0); - codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5 = MAKE_CODEOBJECT(module_filename_obj, 387, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[238], mod_consts[226], 4, 0, 0); - codeobj_1d51fefa562de680476f0ff4599fe161 = MAKE_CODEOBJECT(module_filename_obj, 188, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[239], mod_consts[226], 8, 0, 0); - codeobj_6743357ccf7c82940fdd3986d828807c = MAKE_CODEOBJECT(module_filename_obj, 120, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[240], NULL, 3, 0, 0); - codeobj_a4b23dac5778bf03565b51ee2cf73c40 = MAKE_CODEOBJECT(module_filename_obj, 87, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[18], mod_consts[241], NULL, 3, 0, 0); - codeobj_6d22b487fe6bb506aeab8c6f44f9fb50 = MAKE_CODEOBJECT(module_filename_obj, 314, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[103], mod_consts[242], NULL, 2, 0, 0); - codeobj_5da5d8dd8341dd90a301f5c1751530a7 = MAKE_CODEOBJECT(module_filename_obj, 100, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[26], mod_consts[243], NULL, 3, 0, 0); - codeobj_c463a7dbb13c425ed40fd700772abbe8 = MAKE_CODEOBJECT(module_filename_obj, 437, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[117], mod_consts[244], NULL, 1, 0, 0); - codeobj_e3c6ef6ba02f733011711ea56309b825 = MAKE_CODEOBJECT(module_filename_obj, 430, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[220], mod_consts[245], NULL, 1, 0, 0); - codeobj_fb00d90ebe317fe797e6b0aaf6808223 = MAKE_CODEOBJECT(module_filename_obj, 326, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[227], NULL, 3, 0, 0); - codeobj_28390b239ba9d51ee3f330d3fa1ea492 = MAKE_CODEOBJECT(module_filename_obj, 346, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[246], NULL, 3, 0, 0); - codeobj_299471fa28284ce856fcc2bb0f99954f = MAKE_CODEOBJECT(module_filename_obj, 370, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[246], NULL, 3, 0, 0); - codeobj_5939483b3ea62df720d54e2d3cdb595f = MAKE_CODEOBJECT(module_filename_obj, 395, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[247], NULL, 3, 0, 0); - codeobj_8f9bfd09bcf73e307b173aa11c64832f = MAKE_CODEOBJECT(module_filename_obj, 170, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[248], NULL, 2, 0, 0); - codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27 = MAKE_CODEOBJECT(module_filename_obj, 238, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[249], NULL, 2, 0, 0); - codeobj_1b065ad043e94dde4abbeb05ae11c727 = MAKE_CODEOBJECT(module_filename_obj, 200, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[250], NULL, 2, 0, 0); - codeobj_1fe68f10d21aab4314bc2d9433ea7e6d = MAKE_CODEOBJECT(module_filename_obj, 329, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[101], mod_consts[251], NULL, 2, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$metrics$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_epsilon = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - struct Nuitka_FrameObject *frame_3683e3c7caa72ba2b301b3459a3c874e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_3683e3c7caa72ba2b301b3459a3c874e = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3683e3c7caa72ba2b301b3459a3c874e)) { - Py_XDECREF(cache_frame_3683e3c7caa72ba2b301b3459a3c874e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3683e3c7caa72ba2b301b3459a3c874e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3683e3c7caa72ba2b301b3459a3c874e = MAKE_FUNCTION_FRAME(codeobj_3683e3c7caa72ba2b301b3459a3c874e, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3683e3c7caa72ba2b301b3459a3c874e->m_type_description == NULL); - frame_3683e3c7caa72ba2b301b3459a3c874e = cache_frame_3683e3c7caa72ba2b301b3459a3c874e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3683e3c7caa72ba2b301b3459a3c874e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3683e3c7caa72ba2b301b3459a3c874e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_epsilon); - tmp_assattr_name_1 = par_epsilon; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[0], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3683e3c7caa72ba2b301b3459a3c874e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3683e3c7caa72ba2b301b3459a3c874e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3683e3c7caa72ba2b301b3459a3c874e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3683e3c7caa72ba2b301b3459a3c874e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3683e3c7caa72ba2b301b3459a3c874e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3683e3c7caa72ba2b301b3459a3c874e, - type_description_1, - par_self, - par_epsilon, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_3683e3c7caa72ba2b301b3459a3c874e == cache_frame_3683e3c7caa72ba2b301b3459a3c874e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3683e3c7caa72ba2b301b3459a3c874e); - cache_frame_3683e3c7caa72ba2b301b3459a3c874e = NULL; - } - - assertFrameObject(frame_3683e3c7caa72ba2b301b3459a3c874e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__2___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_739414be80f1099a2cddef3246c0c91d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_739414be80f1099a2cddef3246c0c91d = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_739414be80f1099a2cddef3246c0c91d)) { - Py_XDECREF(cache_frame_739414be80f1099a2cddef3246c0c91d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_739414be80f1099a2cddef3246c0c91d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_739414be80f1099a2cddef3246c0c91d = MAKE_FUNCTION_FRAME(codeobj_739414be80f1099a2cddef3246c0c91d, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_739414be80f1099a2cddef3246c0c91d->m_type_description == NULL); - frame_739414be80f1099a2cddef3246c0c91d = cache_frame_739414be80f1099a2cddef3246c0c91d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_739414be80f1099a2cddef3246c0c91d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_739414be80f1099a2cddef3246c0c91d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[2]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[0]; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[0]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_739414be80f1099a2cddef3246c0c91d->m_frame.f_lineno = 29; - tmp_args_element_name_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_739414be80f1099a2cddef3246c0c91d->m_frame.f_lineno = 29; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_739414be80f1099a2cddef3246c0c91d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_739414be80f1099a2cddef3246c0c91d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_739414be80f1099a2cddef3246c0c91d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_739414be80f1099a2cddef3246c0c91d, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_739414be80f1099a2cddef3246c0c91d == cache_frame_739414be80f1099a2cddef3246c0c91d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_739414be80f1099a2cddef3246c0c91d); - cache_frame_739414be80f1099a2cddef3246c0c91d = NULL; - } - - assertFrameObject(frame_739414be80f1099a2cddef3246c0c91d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_skip_channels = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - PyObject *par_kwargs = python_pars[3]; - struct Nuitka_FrameObject *frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f)) { - Py_XDECREF(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = MAKE_FUNCTION_FRAME(codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f->m_type_description == NULL); - frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_1 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[4], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_skip_channels); - tmp_assattr_name_2 = par_skip_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[5], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, - type_description_1, - par_self, - par_skip_channels, - par_ignore_index, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f == cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = NULL; - } - - assertFrameObject(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_channels); - Py_DECREF(par_skip_channels); - par_skip_channels = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_channels); - Py_DECREF(par_skip_channels); - par_skip_channels = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__4___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_n_classes = NULL; - PyObject *var_per_batch_iou = NULL; - PyObject *var__input = NULL; - PyObject *var__target = NULL; - PyObject *var_binary_prediction = NULL; - PyObject *var_mask = NULL; - PyObject *var_per_channel_iou = NULL; - PyObject *var_c = NULL; - PyObject *var_mean_iou = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_c0f8ba1eff149bb00d08b0021f15f590; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c0f8ba1eff149bb00d08b0021f15f590)) { - Py_XDECREF(cache_frame_c0f8ba1eff149bb00d08b0021f15f590); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c0f8ba1eff149bb00d08b0021f15f590 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = MAKE_FUNCTION_FRAME(codeobj_c0f8ba1eff149bb00d08b0021f15f590, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c0f8ba1eff149bb00d08b0021f15f590->m_type_description == NULL); - frame_c0f8ba1eff149bb00d08b0021f15f590 = cache_frame_c0f8ba1eff149bb00d08b0021f15f590; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c0f8ba1eff149bb00d08b0021f15f590); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c0f8ba1eff149bb00d08b0021f15f590) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_input); - tmp_called_instance_1 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 51; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[8]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 51; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 53; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 1); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_classes == NULL); - var_n_classes = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 55; - tmp_compexpr_left_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[7]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[12]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_target; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[15]; - CHECK_OBJECT(var_n_classes); - tmp_dict_value_1 = var_n_classes; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_2; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[4]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 56; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 58; - tmp_compexpr_left_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[10]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - Py_DECREF(tmp_compexpr_left_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 58; - tmp_compexpr_right_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[10]); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_3); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - tmp_raise_type_2 = PyExc_AssertionError; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_lineno = 58; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(var_per_batch_iou == NULL); - var_per_batch_iou = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 61; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_4; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var__input; - var__input = tmp_assign_source_9; - Py_INCREF(var__input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var__target; - var__target = tmp_assign_source_10; - Py_INCREF(var__target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[18]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var__input); - tmp_args_element_name_3 = var__input; - if (var_n_classes == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_4 = var_n_classes; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 62; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_binary_prediction; - var_binary_prediction = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = par_self; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[4]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - Py_DECREF(tmp_compexpr_left_4); - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(var__target); - tmp_compexpr_left_5 = var__target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[4]); - if (tmp_compexpr_right_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_12 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - tmp_ass_subvalue_1 = mod_consts[20]; - CHECK_OBJECT(var_binary_prediction); - tmp_ass_subscribed_1 = var_binary_prediction; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_1 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_ass_subvalue_2 = mod_consts[20]; - CHECK_OBJECT(var__target); - tmp_ass_subscribed_2 = var__target; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_2 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - } - branch_no_4:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_instance_6; - if (var_binary_prediction == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 71; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_6 = var_binary_prediction; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 71; - tmp_assign_source_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[22]); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_binary_prediction; - var_binary_prediction = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_instance_7; - if (var__target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_7 = var__target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 72; - tmp_assign_source_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[22]); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var__target; - var__target = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - tmp_assign_source_15 = PyList_New(0); - { - PyObject *old = var_per_channel_iou; - var_per_channel_iou = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_iter_arg_3; - PyObject *tmp_xrange_low_1; - if (var_n_classes == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_xrange_low_1 = var_n_classes; - tmp_iter_arg_3 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_16 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_17 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_17 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - exception_lineno = 75; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_18 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_c; - var_c = tmp_assign_source_18; - Py_INCREF(var_c); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_c); - tmp_compexpr_left_6 = var_c; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_6 = par_self; - tmp_compexpr_right_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[5]); - if (tmp_compexpr_right_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_6, tmp_compexpr_left_6); - Py_DECREF(tmp_compexpr_right_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - tmp_condition_result_5 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - goto loop_start_2; - branch_no_5:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - if (var_per_channel_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_7 = var_per_channel_iou; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[25]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[26]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (var_binary_prediction == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_9 = var_binary_prediction; - CHECK_OBJECT(var_c); - tmp_subscript_name_2 = var_c; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_2); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (var__target == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_10 = var__target; - CHECK_OBJECT(var_c); - tmp_subscript_name_3 = var_c; - tmp_args_element_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_3); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 79; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 79; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_operand_name_3; - if (var_per_channel_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_operand_name_3 = var_per_channel_iou; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_6 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_1; - tmp_raise_type_3 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[27]; - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 81; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - branch_no_6:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_8; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_9; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[2]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[28]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - if (var_per_channel_iou == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_9 = var_per_channel_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 82; - tmp_args_element_name_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_7); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 82; - tmp_assign_source_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mean_iou; - var_mean_iou = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_8; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_10; - if (var_per_batch_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_8 = var_per_batch_iou; - CHECK_OBJECT(var_mean_iou); - tmp_args_element_name_10 = var_mean_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 83; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[25], tmp_args_element_name_10); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_12; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[2]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[28]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (var_per_batch_iou == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_12 = var_per_batch_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 85; - tmp_args_element_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_9); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 85; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_11); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c0f8ba1eff149bb00d08b0021f15f590, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c0f8ba1eff149bb00d08b0021f15f590, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c0f8ba1eff149bb00d08b0021f15f590, - type_description_1, - par_self, - par_input, - par_target, - var_n_classes, - var_per_batch_iou, - var__input, - var__target, - var_binary_prediction, - var_mask, - var_per_channel_iou, - var_c, - var_mean_iou - ); - - - // Release cached frame if used for exception. - if (frame_c0f8ba1eff149bb00d08b0021f15f590 == cache_frame_c0f8ba1eff149bb00d08b0021f15f590) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c0f8ba1eff149bb00d08b0021f15f590); - cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = NULL; - } - - assertFrameObject(frame_c0f8ba1eff149bb00d08b0021f15f590); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_n_classes); - var_n_classes = NULL; - Py_XDECREF(var_per_batch_iou); - var_per_batch_iou = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_binary_prediction); - var_binary_prediction = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_per_channel_iou); - var_per_channel_iou = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_mean_iou); - var_mean_iou = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_n_classes); - var_n_classes = NULL; - Py_XDECREF(var_per_batch_iou); - var_per_batch_iou = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_binary_prediction); - var_binary_prediction = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_per_channel_iou); - var_per_channel_iou = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_mean_iou); - var_mean_iou = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__5__binarize_predictions(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_n_classes = python_pars[2]; - PyObject *var_result = NULL; - PyObject *var__ = NULL; - PyObject *var_max_index = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_a4b23dac5778bf03565b51ee2cf73c40; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a4b23dac5778bf03565b51ee2cf73c40)) { - Py_XDECREF(cache_frame_a4b23dac5778bf03565b51ee2cf73c40); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a4b23dac5778bf03565b51ee2cf73c40 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = MAKE_FUNCTION_FRAME(codeobj_a4b23dac5778bf03565b51ee2cf73c40, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a4b23dac5778bf03565b51ee2cf73c40->m_type_description == NULL); - frame_a4b23dac5778bf03565b51ee2cf73c40 = cache_frame_a4b23dac5778bf03565b51ee2cf73c40; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a4b23dac5778bf03565b51ee2cf73c40); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a4b23dac5778bf03565b51ee2cf73c40) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_n_classes); - tmp_compexpr_left_1 = par_n_classes; - tmp_compexpr_right_1 = mod_consts[11]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_input); - tmp_compexpr_left_2 = par_input; - tmp_compexpr_right_2 = mod_consts[31]; - tmp_assign_source_1 = RICH_COMPARE_GT_OBJECT_OBJECT_FLOAT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_result == NULL); - var_result = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_result); - tmp_called_instance_1 = var_result; - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 95; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[34]); - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 97; - tmp_iter_arg_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_5); - var__ = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_max_index == NULL); - Py_INCREF(tmp_assign_source_6); - var_max_index = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[35]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_input; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[36]; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[37]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 98; - tmp_called_instance_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[20]; - CHECK_OBJECT(var_max_index); - tmp_args_element_name_2 = var_max_index; - tmp_args_element_name_3 = mod_consts[11]; - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 98; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_return_value = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[38], - call_args - ); - } - - Py_DECREF(tmp_called_instance_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a4b23dac5778bf03565b51ee2cf73c40, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a4b23dac5778bf03565b51ee2cf73c40, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a4b23dac5778bf03565b51ee2cf73c40, - type_description_1, - par_self, - par_input, - par_n_classes, - var_result, - var__, - var_max_index - ); - - - // Release cached frame if used for exception. - if (frame_a4b23dac5778bf03565b51ee2cf73c40 == cache_frame_a4b23dac5778bf03565b51ee2cf73c40) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a4b23dac5778bf03565b51ee2cf73c40); - cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = NULL; - } - - assertFrameObject(frame_a4b23dac5778bf03565b51ee2cf73c40); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_max_index); - var_max_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_max_index); - var_max_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__6__jaccard_index(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_prediction = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_5da5d8dd8341dd90a301f5c1751530a7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5da5d8dd8341dd90a301f5c1751530a7)) { - Py_XDECREF(cache_frame_5da5d8dd8341dd90a301f5c1751530a7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5da5d8dd8341dd90a301f5c1751530a7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = MAKE_FUNCTION_FRAME(codeobj_5da5d8dd8341dd90a301f5c1751530a7, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5da5d8dd8341dd90a301f5c1751530a7->m_type_description == NULL); - frame_5da5d8dd8341dd90a301f5c1751530a7 = cache_frame_5da5d8dd8341dd90a301f5c1751530a7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5da5d8dd8341dd90a301f5c1751530a7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5da5d8dd8341dd90a301f5c1751530a7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_left_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[40]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prediction); - tmp_left_name_2 = par_prediction; - CHECK_OBJECT(par_target); - tmp_right_name_1 = par_target; - tmp_args_element_name_1 = BINARY_OPERATION_BITAND_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_called_instance_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_left_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[41]); - Py_DECREF(tmp_called_instance_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[42]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[40]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_prediction == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = par_prediction; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_target; - tmp_args_element_name_2 = BINARY_OPERATION_BITOR_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_tuple_element_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[41]); - Py_DECREF(tmp_called_instance_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[44]); - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_right_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5da5d8dd8341dd90a301f5c1751530a7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5da5d8dd8341dd90a301f5c1751530a7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5da5d8dd8341dd90a301f5c1751530a7, - type_description_1, - par_self, - par_prediction, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_5da5d8dd8341dd90a301f5c1751530a7 == cache_frame_5da5d8dd8341dd90a301f5c1751530a7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5da5d8dd8341dd90a301f5c1751530a7); - cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = NULL; - } - - assertFrameObject(frame_5da5d8dd8341dd90a301f5c1751530a7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_use_last_target = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - PyObject *par_kwargs = python_pars[3]; - struct Nuitka_FrameObject *frame_6743357ccf7c82940fdd3986d828807c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_6743357ccf7c82940fdd3986d828807c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6743357ccf7c82940fdd3986d828807c)) { - Py_XDECREF(cache_frame_6743357ccf7c82940fdd3986d828807c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6743357ccf7c82940fdd3986d828807c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6743357ccf7c82940fdd3986d828807c = MAKE_FUNCTION_FRAME(codeobj_6743357ccf7c82940fdd3986d828807c, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6743357ccf7c82940fdd3986d828807c->m_type_description == NULL); - frame_6743357ccf7c82940fdd3986d828807c = cache_frame_6743357ccf7c82940fdd3986d828807c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6743357ccf7c82940fdd3986d828807c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6743357ccf7c82940fdd3986d828807c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_use_last_target); - tmp_assattr_name_1 = par_use_last_target; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[46], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_2 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[4], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6743357ccf7c82940fdd3986d828807c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6743357ccf7c82940fdd3986d828807c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6743357ccf7c82940fdd3986d828807c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6743357ccf7c82940fdd3986d828807c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6743357ccf7c82940fdd3986d828807c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6743357ccf7c82940fdd3986d828807c, - type_description_1, - par_self, - par_use_last_target, - par_ignore_index, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_6743357ccf7c82940fdd3986d828807c == cache_frame_6743357ccf7c82940fdd3986d828807c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6743357ccf7c82940fdd3986d828807c); - cache_frame_6743357ccf7c82940fdd3986d828807c = NULL; - } - - assertFrameObject(frame_6743357ccf7c82940fdd3986d828807c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__8___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_per_batch_arand = NULL; - PyObject *var__input = NULL; - PyObject *var__target = NULL; - PyObject *var_segm = NULL; - PyObject *var_per_channel_arand = NULL; - PyObject *var_mean_arand = NULL; - PyObject *outline_0_var_channel_segm = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_37251eb0c36bb09af4c0657f634957f5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - struct Nuitka_FrameObject *frame_d1e5352fa1a9fbab176ce0366f74b972_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - static struct Nuitka_FrameObject *cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_37251eb0c36bb09af4c0657f634957f5 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_37251eb0c36bb09af4c0657f634957f5)) { - Py_XDECREF(cache_frame_37251eb0c36bb09af4c0657f634957f5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_37251eb0c36bb09af4c0657f634957f5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_37251eb0c36bb09af4c0657f634957f5 = MAKE_FUNCTION_FRAME(codeobj_37251eb0c36bb09af4c0657f634957f5, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_37251eb0c36bb09af4c0657f634957f5->m_type_description == NULL); - frame_37251eb0c36bb09af4c0657f634957f5 = cache_frame_37251eb0c36bb09af4c0657f634957f5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_37251eb0c36bb09af4c0657f634957f5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_37251eb0c36bb09af4c0657f634957f5) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 137; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 138; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_target); - tmp_expression_name_2 = par_target; - tmp_subscript_name_1 = mod_consts[48]; - tmp_assign_source_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_6; - Py_DECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_target); - tmp_expression_name_3 = par_target; - tmp_subscript_name_2 = mod_consts[49]; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_7; - Py_DECREF(old); - } - - } - branch_end_1:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(par_target); - tmp_expression_name_4 = par_target; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[52]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 145; - tmp_assign_source_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[4]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_7; - tmp_ass_subvalue_1 = mod_consts[20]; - CHECK_OBJECT(par_target); - tmp_ass_subscribed_1 = par_target; - CHECK_OBJECT(par_target); - tmp_compexpr_left_2 = par_target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[4]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_ass_subscript_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_ass_subscript_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = PyList_New(0); - assert(var_per_batch_arand == NULL); - var_per_batch_arand = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - tmp_called_name_3 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(par_input); - tmp_args_element_name_4 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_target; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 151; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_10 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_10; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_11 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_11 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_3 = tmp_for_loop_1__iter_value; - tmp_assign_source_12 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_5; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_4; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_15 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var__input; - var__input = tmp_assign_source_15; - Py_INCREF(var__input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var__target; - var__target = tmp_assign_source_16; - Py_INCREF(var__target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_6; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - int tmp_truth_name_2; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[53]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var__target); - tmp_compexpr_left_3 = var__target; - CHECK_OBJECT(var__target); - tmp_expression_name_10 = var__target; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[54]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_subscript_name_3 = mod_consts[20]; - tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_9); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_element_name_6 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 152; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_2; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 153; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[57], 0) - ); - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_3; - if (var_per_batch_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_2 = var_per_batch_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 154; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[25], - &PyTuple_GET_ITEM(mod_consts[59], 0) - ); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_3); - } - goto loop_start_1; - branch_no_3:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var__input); - tmp_args_element_name_7 = var__input; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 158; - tmp_assign_source_17 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[60], tmp_args_element_name_7); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_segm; - var_segm = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(var_segm); - tmp_expression_name_11 = var_segm; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[61]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_compexpr_right_4 = mod_consts[12]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 159; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_18; - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_iter_arg_4; - if (var_segm == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - } - - tmp_iter_arg_4 = var_segm; - tmp_assign_source_19 = MAKE_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_listcomp_1__$0; - tmp_listcomp_1__$0 = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = PyList_New(0); - { - PyObject *old = tmp_listcomp_1__contraction; - tmp_listcomp_1__contraction = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - if (isFrameUnusable(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2)) { - Py_XDECREF(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = MAKE_FUNCTION_FRAME(codeobj_d1e5352fa1a9fbab176ce0366f74b972, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_type_description == NULL); - frame_d1e5352fa1a9fbab176ce0366f74b972_2 = cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d1e5352fa1a9fbab176ce0366f74b972_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d1e5352fa1a9fbab176ce0366f74b972_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_2 = tmp_listcomp_1__$0; - tmp_assign_source_21 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_21 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 162; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_22 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_channel_segm; - outline_0_var_channel_segm = tmp_assign_source_22; - Py_INCREF(outline_0_var_channel_segm); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[63]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[63]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - if (var__target == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - - tmp_args_element_name_8 = var__target; - CHECK_OBJECT(outline_0_var_channel_segm); - tmp_args_element_name_9 = outline_0_var_channel_segm; - frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_frame.f_lineno = 162; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_expression_name_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - tmp_subscript_name_4 = mod_consts[20]; - tmp_append_value_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_12, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_12); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - goto loop_start_2; - loop_end_2:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_18 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_18); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_7; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d1e5352fa1a9fbab176ce0366f74b972_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d1e5352fa1a9fbab176ce0366f74b972_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d1e5352fa1a9fbab176ce0366f74b972_2, - type_description_2, - outline_0_var_channel_segm, - var__target - ); - - - // Release cached frame if used for exception. - if (frame_d1e5352fa1a9fbab176ce0366f74b972_2 == cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2); - cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = NULL; - } - - assertFrameObject(frame_d1e5352fa1a9fbab176ce0366f74b972_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_XDECREF(outline_0_var_channel_segm); - outline_0_var_channel_segm = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_channel_segm); - outline_0_var_channel_segm = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 162; - goto try_except_handler_4; - outline_result_1:; - { - PyObject *old = var_per_channel_arand; - var_per_channel_arand = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_13; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_11; - if (var_per_batch_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_13 = var_per_batch_arand; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[25]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_per_channel_arand); - tmp_args_element_name_11 = var_per_channel_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 163; - tmp_args_element_name_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[64], tmp_args_element_name_11); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 163; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_10); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_4); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_5; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_13; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[2]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[28]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_per_batch_arand == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_13 = var_per_batch_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 166; - tmp_args_element_name_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_8); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 166; - tmp_assign_source_23 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_mean_arand == NULL); - var_mean_arand = tmp_assign_source_23; - } - { - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_14; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[56]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[65]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_called_instance_5; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_mean_arand); - tmp_called_instance_5 = var_mean_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 167; - tmp_format_value_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[66]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[67]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_14 = PyUnicode_Join(mod_consts[67], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 167; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_14); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_14); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - if (var_mean_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 168; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_mean_arand; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_37251eb0c36bb09af4c0657f634957f5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_37251eb0c36bb09af4c0657f634957f5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_37251eb0c36bb09af4c0657f634957f5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_37251eb0c36bb09af4c0657f634957f5, - type_description_1, - par_self, - par_input, - par_target, - var_per_batch_arand, - var__input, - var__target, - var_segm, - var_per_channel_arand, - var_mean_arand - ); - - - // Release cached frame if used for exception. - if (frame_37251eb0c36bb09af4c0657f634957f5 == cache_frame_37251eb0c36bb09af4c0657f634957f5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_37251eb0c36bb09af4c0657f634957f5); - cache_frame_37251eb0c36bb09af4c0657f634957f5 = NULL; - } - - assertFrameObject(frame_37251eb0c36bb09af4c0657f634957f5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_batch_arand); - var_per_batch_arand = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_segm); - var_segm = NULL; - Py_XDECREF(var_per_channel_arand); - var_per_channel_arand = NULL; - Py_XDECREF(var_mean_arand); - var_mean_arand = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_batch_arand); - var_per_batch_arand = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_segm); - var_segm = NULL; - Py_XDECREF(var_per_channel_arand); - var_per_channel_arand = NULL; - Py_XDECREF(var_mean_arand); - var_mean_arand = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__9_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_input); - tmp_return_value = par_input; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__10___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_use_last_target = python_pars[2]; - PyObject *par_ignore_index = python_pars[3]; - PyObject *par_input_channel = python_pars[4]; - PyObject *par_invert_pmaps = python_pars[5]; - PyObject *par_save_plots = python_pars[6]; - PyObject *par_plots_dir = python_pars[7]; - PyObject *par_kwargs = python_pars[8]; - struct Nuitka_FrameObject *frame_1d51fefa562de680476f0ff4599fe161; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_1d51fefa562de680476f0ff4599fe161 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1d51fefa562de680476f0ff4599fe161)) { - Py_XDECREF(cache_frame_1d51fefa562de680476f0ff4599fe161); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1d51fefa562de680476f0ff4599fe161 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1d51fefa562de680476f0ff4599fe161 = MAKE_FUNCTION_FRAME(codeobj_1d51fefa562de680476f0ff4599fe161, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1d51fefa562de680476f0ff4599fe161->m_type_description == NULL); - frame_1d51fefa562de680476f0ff4599fe161 = cache_frame_1d51fefa562de680476f0ff4599fe161; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1d51fefa562de680476f0ff4599fe161); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1d51fefa562de680476f0ff4599fe161) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[46]; - CHECK_OBJECT(par_use_last_target); - tmp_dict_value_1 = par_use_last_target; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_1 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[73]; - CHECK_OBJECT(par_save_plots); - tmp_dict_value_1 = par_save_plots; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[74]; - CHECK_OBJECT(par_plots_dir); - tmp_dict_value_1 = par_plots_dir; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 195; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_invert_pmaps); - tmp_assattr_name_3 = par_invert_pmaps; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[78], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1d51fefa562de680476f0ff4599fe161); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1d51fefa562de680476f0ff4599fe161); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1d51fefa562de680476f0ff4599fe161, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1d51fefa562de680476f0ff4599fe161->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1d51fefa562de680476f0ff4599fe161, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1d51fefa562de680476f0ff4599fe161, - type_description_1, - par_self, - par_thresholds, - par_use_last_target, - par_ignore_index, - par_input_channel, - par_invert_pmaps, - par_save_plots, - par_plots_dir, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_1d51fefa562de680476f0ff4599fe161 == cache_frame_1d51fefa562de680476f0ff4599fe161) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1d51fefa562de680476f0ff4599fe161); - cache_frame_1d51fefa562de680476f0ff4599fe161 = NULL; - } - - assertFrameObject(frame_1d51fefa562de680476f0ff4599fe161); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_invert_pmaps); - Py_DECREF(par_invert_pmaps); - par_invert_pmaps = NULL; - CHECK_OBJECT(par_save_plots); - Py_DECREF(par_save_plots); - par_save_plots = NULL; - CHECK_OBJECT(par_plots_dir); - Py_DECREF(par_plots_dir); - par_plots_dir = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_invert_pmaps); - Py_DECREF(par_invert_pmaps); - par_invert_pmaps = NULL; - CHECK_OBJECT(par_save_plots); - Py_DECREF(par_save_plots); - par_save_plots = NULL; - CHECK_OBJECT(par_plots_dir); - Py_DECREF(par_plots_dir); - par_plots_dir = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__11_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_segs = NULL; - PyObject *var_predictions = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_1b065ad043e94dde4abbeb05ae11c727; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_1b065ad043e94dde4abbeb05ae11c727 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1b065ad043e94dde4abbeb05ae11c727)) { - Py_XDECREF(cache_frame_1b065ad043e94dde4abbeb05ae11c727); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1b065ad043e94dde4abbeb05ae11c727 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1b065ad043e94dde4abbeb05ae11c727 = MAKE_FUNCTION_FRAME(codeobj_1b065ad043e94dde4abbeb05ae11c727, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1b065ad043e94dde4abbeb05ae11c727->m_type_description == NULL); - frame_1b065ad043e94dde4abbeb05ae11c727 = cache_frame_1b065ad043e94dde4abbeb05ae11c727; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1b065ad043e94dde4abbeb05ae11c727); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1b065ad043e94dde4abbeb05ae11c727) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[77]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[79]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_expression_name_3 = par_input; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[80]); - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 202; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input); - tmp_iter_arg_1 = par_input; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 205; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_5; - Py_INCREF(var_predictions); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[76]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 206; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_8; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - if (var_predictions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_compexpr_left_2 = var_predictions; - CHECK_OBJECT(var_th); - tmp_compexpr_right_2 = var_th; - tmp_assign_source_9 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_6 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[78]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_predictions); - tmp_args_element_name_1 = var_predictions; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 213; - tmp_assign_source_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[82], tmp_args_element_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(var_predictions); - tmp_expression_name_7 = var_predictions; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[50]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[37]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 215; - tmp_assign_source_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[84]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_predictions); - tmp_tuple_element_2 = var_predictions; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[85]); - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 217; - tmp_assign_source_12 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_called_instance_2 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_3 = var_seg; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 218; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[25], tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_4; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_segs; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 220; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1b065ad043e94dde4abbeb05ae11c727, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1b065ad043e94dde4abbeb05ae11c727->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1b065ad043e94dde4abbeb05ae11c727, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1b065ad043e94dde4abbeb05ae11c727, - type_description_1, - par_self, - par_input, - var_segs, - var_predictions, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_1b065ad043e94dde4abbeb05ae11c727 == cache_frame_1b065ad043e94dde4abbeb05ae11c727) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1b065ad043e94dde4abbeb05ae11c727); - cache_frame_1b065ad043e94dde4abbeb05ae11c727 = NULL; - } - - assertFrameObject(frame_1b065ad043e94dde4abbeb05ae11c727); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_channels = python_pars[1]; - PyObject *par_thresholds = python_pars[2]; - PyObject *par_use_last_target = python_pars[3]; - PyObject *par_ignore_index = python_pars[4]; - PyObject *par_invert_channels = python_pars[5]; - PyObject *par_kwargs = python_pars[6]; - struct Nuitka_FrameObject *frame_15029efea78ca37b23d40989b01f6a0a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_15029efea78ca37b23d40989b01f6a0a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_15029efea78ca37b23d40989b01f6a0a)) { - Py_XDECREF(cache_frame_15029efea78ca37b23d40989b01f6a0a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_15029efea78ca37b23d40989b01f6a0a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_15029efea78ca37b23d40989b01f6a0a = MAKE_FUNCTION_FRAME(codeobj_15029efea78ca37b23d40989b01f6a0a, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_15029efea78ca37b23d40989b01f6a0a->m_type_description == NULL); - frame_15029efea78ca37b23d40989b01f6a0a = cache_frame_15029efea78ca37b23d40989b01f6a0a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_15029efea78ca37b23d40989b01f6a0a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_15029efea78ca37b23d40989b01f6a0a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[46]; - CHECK_OBJECT(par_use_last_target); - tmp_dict_value_1 = par_use_last_target; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_1 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - CHECK_OBJECT(par_input_channels); - tmp_isinstance_inst_1 = par_input_channels; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_input_channels); - tmp_isinstance_inst_2 = par_input_channels; - tmp_isinstance_cls_2 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 228; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_input_channels); - tmp_assattr_name_1 = par_input_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[88], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_2; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_3 = par_thresholds; - tmp_isinstance_cls_3 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_2 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - tmp_raise_type_2 = PyExc_AssertionError; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_lineno = 232; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_2 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[76], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_invert_channels); - tmp_compexpr_left_2 = par_invert_channels; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - { - PyObject *old = par_invert_channels; - assert(old != NULL); - par_invert_channels = tmp_assign_source_2; - Py_DECREF(old); - } - - } - branch_no_4:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_invert_channels); - tmp_assattr_name_3 = par_invert_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[89], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15029efea78ca37b23d40989b01f6a0a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15029efea78ca37b23d40989b01f6a0a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_15029efea78ca37b23d40989b01f6a0a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_15029efea78ca37b23d40989b01f6a0a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_15029efea78ca37b23d40989b01f6a0a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_15029efea78ca37b23d40989b01f6a0a, - type_description_1, - par_self, - par_input_channels, - par_thresholds, - par_use_last_target, - par_ignore_index, - par_invert_channels, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_15029efea78ca37b23d40989b01f6a0a == cache_frame_15029efea78ca37b23d40989b01f6a0a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_15029efea78ca37b23d40989b01f6a0a); - cache_frame_15029efea78ca37b23d40989b01f6a0a = NULL; - } - - assertFrameObject(frame_15029efea78ca37b23d40989b01f6a0a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_channels); - Py_DECREF(par_input_channels); - par_input_channels = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_invert_channels); - Py_DECREF(par_invert_channels); - par_invert_channels = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_channels); - Py_DECREF(par_input_channels); - par_input_channels = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(par_invert_channels); - par_invert_channels = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__13_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_results = NULL; - PyObject *var_i = NULL; - PyObject *var_c = NULL; - PyObject *var_segs = NULL; - PyObject *var_predictions = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_aa4eae3e0dbdfd57a611a0325f8f7e27; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_results == NULL); - var_results = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27)) { - Py_XDECREF(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = MAKE_FUNCTION_FRAME(codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_type_description == NULL); - frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aa4eae3e0dbdfd57a611a0325f8f7e27) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[88]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 241; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_4; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 242; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = par_input; - CHECK_OBJECT(var_i); - tmp_subscript_name_1 = var_i; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_c; - var_c = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(var_i); - tmp_compexpr_left_1 = var_i; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[89]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_left_name_1 = mod_consts[11]; - CHECK_OBJECT(var_c); - tmp_right_name_1 = var_c; - tmp_assign_source_6 = BINARY_OPERATION_SUB_OBJECT_LONG_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_c; - var_c = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (var_results == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_results; - CHECK_OBJECT(var_c); - tmp_args_element_name_1 = var_c; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 246; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[87]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_results == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_results; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 248; - tmp_assign_source_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(par_input); - tmp_iter_arg_2 = par_input; - tmp_assign_source_9 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_9; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_10 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_10 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 251; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_11 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_11; - Py_INCREF(var_predictions); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_3; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = par_self; - tmp_iter_arg_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[76]); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_13 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_13 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 252; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_14 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_14; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_predictions == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_compexpr_left_2 = var_predictions; - CHECK_OBJECT(var_th); - tmp_compexpr_right_2 = var_th; - tmp_expression_name_7 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[50]); - Py_DECREF(tmp_expression_name_7); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[37]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 254; - tmp_tuple_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 254; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_4; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 255; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_2 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_4 = var_seg; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 255; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[25], tmp_args_element_name_4); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_5; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = var_segs; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 257; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aa4eae3e0dbdfd57a611a0325f8f7e27, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aa4eae3e0dbdfd57a611a0325f8f7e27, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aa4eae3e0dbdfd57a611a0325f8f7e27, - type_description_1, - par_self, - par_input, - var_results, - var_i, - var_c, - var_segs, - var_predictions, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_aa4eae3e0dbdfd57a611a0325f8f7e27 == cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = NULL; - } - - assertFrameObject(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_results); - var_results = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_results); - var_results = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__14___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_min_instance_size = python_pars[1]; - PyObject *par_use_last_target = python_pars[2]; - PyObject *par_metric = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_c01d4c493e093c7de00d919c7dbc97f3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c01d4c493e093c7de00d919c7dbc97f3)) { - Py_XDECREF(cache_frame_c01d4c493e093c7de00d919c7dbc97f3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c01d4c493e093c7de00d919c7dbc97f3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = MAKE_FUNCTION_FRAME(codeobj_c01d4c493e093c7de00d919c7dbc97f3, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c01d4c493e093c7de00d919c7dbc97f3->m_type_description == NULL); - frame_c01d4c493e093c7de00d919c7dbc97f3 = cache_frame_c01d4c493e093c7de00d919c7dbc97f3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c01d4c493e093c7de00d919c7dbc97f3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c01d4c493e093c7de00d919c7dbc97f3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_min_instance_size); - tmp_assattr_name_1 = par_min_instance_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[91], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_use_last_target); - tmp_assattr_name_2 = par_use_last_target; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[46], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_metric); - tmp_compexpr_left_1 = par_metric; - tmp_compexpr_right_1 = LIST_COPY(mod_consts[92]); - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 264; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_metric); - tmp_compexpr_left_2 = par_metric; - tmp_compexpr_right_2 = mod_consts[93]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 265; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_assattr_target_3; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[94]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[94]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame.f_lineno = 267; - tmp_assattr_name_3 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[95], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[96]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[96]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[97]); - frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame.f_lineno = 270; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[95], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c01d4c493e093c7de00d919c7dbc97f3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c01d4c493e093c7de00d919c7dbc97f3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c01d4c493e093c7de00d919c7dbc97f3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c01d4c493e093c7de00d919c7dbc97f3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c01d4c493e093c7de00d919c7dbc97f3, - type_description_1, - par_self, - par_min_instance_size, - par_use_last_target, - par_metric, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_c01d4c493e093c7de00d919c7dbc97f3 == cache_frame_c01d4c493e093c7de00d919c7dbc97f3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c01d4c493e093c7de00d919c7dbc97f3); - cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = NULL; - } - - assertFrameObject(frame_c01d4c493e093c7de00d919c7dbc97f3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_min_instance_size); - Py_DECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_metric); - Py_DECREF(par_metric); - par_metric = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_min_instance_size); - Py_DECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_metric); - Py_DECREF(par_metric); - par_metric = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__15___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_input1 = NULL; - PyObject *var_input2 = NULL; - PyObject *var_multi_head = NULL; - PyObject *var_batch_aps = NULL; - PyObject *var_i_batch = NULL; - PyObject *var_inp1 = NULL; - PyObject *var_inp2 = NULL; - PyObject *var_tar = NULL; - PyObject *var_inp = NULL; - PyObject *var_segs = NULL; - PyObject *var_segs_aps = NULL; - PyObject *outline_0_var_seg = NULL; - PyObject *tmp_assign_unpack_1__assign_source = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__element_3 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - struct Nuitka_FrameObject *frame_addffaf71f67b562ba4f792bfe1d9f33; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - struct Nuitka_FrameObject *frame_c7d769025392d480a661ed7525d49b57_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - static struct Nuitka_FrameObject *cache_frame_c7d769025392d480a661ed7525d49b57_2 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_addffaf71f67b562ba4f792bfe1d9f33)) { - Py_XDECREF(cache_frame_addffaf71f67b562ba4f792bfe1d9f33); - -#if _DEBUG_REFCOUNTS - if (cache_frame_addffaf71f67b562ba4f792bfe1d9f33 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = MAKE_FUNCTION_FRAME(codeobj_addffaf71f67b562ba4f792bfe1d9f33, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_addffaf71f67b562ba4f792bfe1d9f33->m_type_description == NULL); - frame_addffaf71f67b562ba4f792bfe1d9f33 = cache_frame_addffaf71f67b562ba4f792bfe1d9f33; - - // Push the new frame as the currently active one. - pushFrameStack(frame_addffaf71f67b562ba4f792bfe1d9f33); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_addffaf71f67b562ba4f792bfe1d9f33) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 273; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[8]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 274; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 274; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 275; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_target; - tmp_subscript_name_1 = mod_consts[48]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 278; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_target; - tmp_subscript_name_2 = mod_consts[49]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_end_2:; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(par_input); - tmp_assign_source_3 = par_input; - assert(tmp_assign_unpack_1__assign_source == NULL); - Py_INCREF(tmp_assign_source_3); - tmp_assign_unpack_1__assign_source = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_4 = tmp_assign_unpack_1__assign_source; - assert(var_input1 == NULL); - Py_INCREF(tmp_assign_source_4); - var_input1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_5 = tmp_assign_unpack_1__assign_source; - assert(var_input2 == NULL); - Py_INCREF(tmp_assign_source_5); - var_input2 = tmp_assign_source_5; - } - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - Py_DECREF(tmp_assign_unpack_1__assign_source); - tmp_assign_unpack_1__assign_source = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_1 = par_input; - tmp_isinstance_cls_1 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = (tmp_res != 0) ? Py_True : Py_False; - assert(var_multi_head == NULL); - Py_INCREF(tmp_assign_source_6); - var_multi_head = tmp_assign_source_6; - } - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_3; - CHECK_OBJECT(var_multi_head); - tmp_truth_name_3 = CHECK_IF_TRUE(var_multi_head); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input); - tmp_iter_arg_1 = par_input; - tmp_assign_source_7 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_7; - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_9; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_input1; - assert(old != NULL); - var_input1 = tmp_assign_source_10; - Py_INCREF(var_input1); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_input2; - assert(old != NULL); - var_input2 = tmp_assign_source_11; - Py_INCREF(var_input2); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - branch_no_3:; - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_input1); - tmp_args_element_name_1 = var_input1; - CHECK_OBJECT(var_input2); - tmp_args_element_name_2 = var_input2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_3 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 285; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_12 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_15; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[98]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_input1; - assert(old != NULL); - var_input1 = tmp_assign_source_16; - Py_INCREF(var_input1); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_17 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_input2; - assert(old != NULL); - var_input2 = tmp_assign_source_17; - Py_INCREF(var_input2); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_18 = tmp_tuple_unpack_2__element_3; - { - PyObject *old = par_target; - par_target = tmp_assign_source_18; - Py_INCREF(par_target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyList_New(0); - assert(var_batch_aps == NULL); - var_batch_aps = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = mod_consts[20]; - assert(var_i_batch == NULL); - Py_INCREF(tmp_assign_source_20); - var_i_batch = tmp_assign_source_20; - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_input1); - tmp_args_element_name_4 = var_input1; - CHECK_OBJECT(var_input2); - tmp_args_element_name_5 = var_input2; - CHECK_OBJECT(par_target); - tmp_args_element_name_6 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 290; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_iter_arg_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_21 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_21; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_22 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_22 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_4 = tmp_for_loop_1__iter_value; - tmp_assign_source_23 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_24 = UNPACK_NEXT(tmp_unpack_6, 0, 3); - if (tmp_assign_source_24 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_25 = UNPACK_NEXT(tmp_unpack_7, 1, 3); - if (tmp_assign_source_25 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_26 = UNPACK_NEXT(tmp_unpack_8, 2, 3); - if (tmp_assign_source_26 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_3; - tmp_tuple_unpack_3__element_3 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[98]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_7; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_6; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_27; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_27 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_inp1; - var_inp1 = tmp_assign_source_27; - Py_INCREF(var_inp1); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_28 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_inp2; - var_inp2 = tmp_assign_source_28; - Py_INCREF(var_inp2); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - { - PyObject *tmp_assign_source_29; - CHECK_OBJECT(tmp_tuple_unpack_3__element_3); - tmp_assign_source_29 = tmp_tuple_unpack_3__element_3; - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_29; - Py_INCREF(var_tar); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - { - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_4; - if (var_multi_head == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 291; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_truth_name_4 = CHECK_IF_TRUE(var_multi_head); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_4 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_inp1); - tmp_tuple_element_1 = var_inp1; - tmp_assign_source_30 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_30, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_inp2); - tmp_tuple_element_1 = var_inp2; - PyTuple_SET_ITEM0(tmp_assign_source_30, 1, tmp_tuple_element_1); - { - PyObject *old = var_inp; - var_inp = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_31; - CHECK_OBJECT(var_inp1); - tmp_assign_source_31 = var_inp1; - { - PyObject *old = var_inp; - var_inp = tmp_assign_source_31; - Py_INCREF(var_inp); - Py_XDECREF(old); - } - - } - branch_end_4:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_inp); - tmp_args_element_name_7 = var_inp; - CHECK_OBJECT(var_tar); - tmp_args_element_name_8 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 296; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_32 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[100], - call_args - ); - } - - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_segs; - var_segs = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(var_segs); - tmp_expression_name_4 = var_segs; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[61]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_compexpr_right_2 = mod_consts[12]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 297; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - branch_no_5:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_5 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[101]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - if (var_tar == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_9 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 299; - tmp_assign_source_33 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 302; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_tar); - tmp_args_element_name_10 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 302; - tmp_assign_source_34 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[103], tmp_args_element_name_10); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - // Tried code: - { - PyObject *tmp_assign_source_36; - PyObject *tmp_iter_arg_5; - if (var_segs == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - } - - tmp_iter_arg_5 = var_segs; - tmp_assign_source_36 = MAKE_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_listcomp_1__$0; - tmp_listcomp_1__$0 = tmp_assign_source_36; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyList_New(0); - { - PyObject *old = tmp_listcomp_1__contraction; - tmp_listcomp_1__contraction = tmp_assign_source_37; - Py_XDECREF(old); - } - - } - if (isFrameUnusable(cache_frame_c7d769025392d480a661ed7525d49b57_2)) { - Py_XDECREF(cache_frame_c7d769025392d480a661ed7525d49b57_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c7d769025392d480a661ed7525d49b57_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c7d769025392d480a661ed7525d49b57_2 = MAKE_FUNCTION_FRAME(codeobj_c7d769025392d480a661ed7525d49b57, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c7d769025392d480a661ed7525d49b57_2->m_type_description == NULL); - frame_c7d769025392d480a661ed7525d49b57_2 = cache_frame_c7d769025392d480a661ed7525d49b57_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c7d769025392d480a661ed7525d49b57_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c7d769025392d480a661ed7525d49b57_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_38; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_2 = tmp_listcomp_1__$0; - tmp_assign_source_38 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_38 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "ooo"; - exception_lineno = 305; - goto try_except_handler_10; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_38; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_39 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_seg; - outline_0_var_seg = tmp_assign_source_39; - Py_INCREF(outline_0_var_seg); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (par_self == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[95]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(outline_0_var_seg); - tmp_args_element_name_12 = outline_0_var_seg; - frame_c7d769025392d480a661ed7525d49b57_2->m_frame.f_lineno = 305; - tmp_args_element_name_11 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[103], tmp_args_element_name_12); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - if (var_tar == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_args_element_name_13 = var_tar; - frame_c7d769025392d480a661ed7525d49b57_2->m_frame.f_lineno = 305; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_13}; - tmp_append_value_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - goto loop_start_2; - loop_end_2:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_35 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_35); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_9; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c7d769025392d480a661ed7525d49b57_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c7d769025392d480a661ed7525d49b57_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c7d769025392d480a661ed7525d49b57_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c7d769025392d480a661ed7525d49b57_2, - type_description_2, - outline_0_var_seg, - par_self, - var_tar - ); - - - // Release cached frame if used for exception. - if (frame_c7d769025392d480a661ed7525d49b57_2 == cache_frame_c7d769025392d480a661ed7525d49b57_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c7d769025392d480a661ed7525d49b57_2); - cache_frame_c7d769025392d480a661ed7525d49b57_2 = NULL; - } - - assertFrameObject(frame_c7d769025392d480a661ed7525d49b57_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_XDECREF(outline_0_var_seg); - outline_0_var_seg = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_seg); - outline_0_var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 305; - goto try_except_handler_6; - outline_result_1:; - { - PyObject *old = var_segs_aps; - var_segs_aps = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_14; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_2; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[56]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_tuple_element_2 = mod_consts[104]; - tmp_string_concat_values_1 = PyTuple_New(4); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_15; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_2); - if (var_i_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_1 = var_i_batch; - tmp_format_spec_1 = mod_consts[67]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[106]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_2); - tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_5 == NULL)) { - tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - CHECK_OBJECT(var_segs_aps); - tmp_args_element_name_15 = var_segs_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 307; - tmp_format_value_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[107], tmp_args_element_name_15); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_2 = mod_consts[67]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_14 = PyUnicode_Join(mod_consts[67], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 307; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_14); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_14); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_17; - if (var_batch_aps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_8 = var_batch_aps; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[25]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[33]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - if (var_segs_aps == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_17 = var_segs_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 309; - tmp_args_element_name_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_17); - Py_DECREF(tmp_called_name_7); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 309; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_16); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_16); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_i_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_left_name_1 = var_i_batch; - tmp_right_name_1 = mod_consts[11]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_40 = tmp_left_name_1; - var_i_batch = tmp_assign_source_40; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_1; - loop_end_1:; - goto try_end_7; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_instance_6; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_18; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[28]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_aps == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_18 = var_batch_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 312; - tmp_called_instance_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_8); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 312; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[2]); - Py_DECREF(tmp_called_instance_6); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_addffaf71f67b562ba4f792bfe1d9f33, exception_lineno); - } else if (exception_tb->tb_frame != &frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_addffaf71f67b562ba4f792bfe1d9f33, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_addffaf71f67b562ba4f792bfe1d9f33, - type_description_1, - par_self, - par_input, - par_target, - var_input1, - var_input2, - var_multi_head, - var_batch_aps, - var_i_batch, - var_inp1, - var_inp2, - var_tar, - var_inp, - var_segs, - var_segs_aps - ); - - - // Release cached frame if used for exception. - if (frame_addffaf71f67b562ba4f792bfe1d9f33 == cache_frame_addffaf71f67b562ba4f792bfe1d9f33) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_addffaf71f67b562ba4f792bfe1d9f33); - cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = NULL; - } - - assertFrameObject(frame_addffaf71f67b562ba4f792bfe1d9f33); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(var_input1); - Py_DECREF(var_input1); - var_input1 = NULL; - CHECK_OBJECT(var_input2); - Py_DECREF(var_input2); - var_input2 = NULL; - Py_XDECREF(var_multi_head); - var_multi_head = NULL; - Py_XDECREF(var_batch_aps); - var_batch_aps = NULL; - Py_XDECREF(var_i_batch); - var_i_batch = NULL; - Py_XDECREF(var_inp1); - var_inp1 = NULL; - Py_XDECREF(var_inp2); - var_inp2 = NULL; - Py_XDECREF(var_tar); - var_tar = NULL; - Py_XDECREF(var_inp); - var_inp = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_segs_aps); - var_segs_aps = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_input1); - var_input1 = NULL; - Py_XDECREF(var_input2); - var_input2 = NULL; - Py_XDECREF(var_multi_head); - var_multi_head = NULL; - Py_XDECREF(var_batch_aps); - var_batch_aps = NULL; - Py_XDECREF(var_i_batch); - var_i_batch = NULL; - Py_XDECREF(var_inp1); - var_inp1 = NULL; - Py_XDECREF(var_inp2); - var_inp2 = NULL; - Py_XDECREF(var_tar); - var_tar = NULL; - Py_XDECREF(var_inp); - var_inp = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_segs_aps); - var_segs_aps = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__16__filter_instances(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_counts = NULL; - PyObject *var_label = NULL; - PyObject *var_count = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_6d22b487fe6bb506aeab8c6f44f9fb50; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - bool tmp_result; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50)) { - Py_XDECREF(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = MAKE_FUNCTION_FRAME(codeobj_6d22b487fe6bb506aeab8c6f44f9fb50, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_type_description == NULL); - frame_6d22b487fe6bb506aeab8c6f44f9fb50 = cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6d22b487fe6bb506aeab8c6f44f9fb50); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6d22b487fe6bb506aeab8c6f44f9fb50) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[91]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[110]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[111]); - frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame.f_lineno = 320; - tmp_iter_arg_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_labels == NULL); - Py_INCREF(tmp_assign_source_4); - var_labels = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_counts == NULL); - Py_INCREF(tmp_assign_source_5); - var_counts = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_labels); - tmp_args_element_name_1 = var_labels; - CHECK_OBJECT(var_counts); - tmp_args_element_name_2 = var_counts; - frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame.f_lineno = 321; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_6; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_3 = tmp_for_loop_1__iter_value; - tmp_assign_source_8 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_5; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_4; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_11 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_label; - var_label = tmp_assign_source_11; - Py_INCREF(var_label); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_12 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_count; - var_count = tmp_assign_source_12; - Py_INCREF(var_count); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(var_count); - tmp_compexpr_left_2 = var_count; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[91]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - tmp_condition_result_2 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_ass_subvalue_1 = mod_consts[20]; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = par_input; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_compexpr_left_3 = par_input; - CHECK_OBJECT(var_label); - tmp_compexpr_right_3 = var_label; - tmp_ass_subscript_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_ass_subscript_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - } - branch_no_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_5; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - branch_no_1:; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 324; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = par_input; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6d22b487fe6bb506aeab8c6f44f9fb50, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6d22b487fe6bb506aeab8c6f44f9fb50, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6d22b487fe6bb506aeab8c6f44f9fb50, - type_description_1, - par_self, - par_input, - var_labels, - var_counts, - var_label, - var_count - ); - - - // Release cached frame if used for exception. - if (frame_6d22b487fe6bb506aeab8c6f44f9fb50 == cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50); - cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = NULL; - } - - assertFrameObject(frame_6d22b487fe6bb506aeab8c6f44f9fb50); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_counts); - var_counts = NULL; - Py_XDECREF(var_label); - var_label = NULL; - Py_XDECREF(var_count); - var_count = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_counts); - var_counts = NULL; - Py_XDECREF(var_label); - var_label = NULL; - Py_XDECREF(var_count); - var_count = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__17_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_fb00d90ebe317fe797e6b0aaf6808223; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fb00d90ebe317fe797e6b0aaf6808223)) { - Py_XDECREF(cache_frame_fb00d90ebe317fe797e6b0aaf6808223); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fb00d90ebe317fe797e6b0aaf6808223 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = MAKE_FUNCTION_FRAME(codeobj_fb00d90ebe317fe797e6b0aaf6808223, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fb00d90ebe317fe797e6b0aaf6808223->m_type_description == NULL); - frame_fb00d90ebe317fe797e6b0aaf6808223 = cache_frame_fb00d90ebe317fe797e6b0aaf6808223; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fb00d90ebe317fe797e6b0aaf6808223); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fb00d90ebe317fe797e6b0aaf6808223) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 327; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb00d90ebe317fe797e6b0aaf6808223); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb00d90ebe317fe797e6b0aaf6808223); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fb00d90ebe317fe797e6b0aaf6808223, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fb00d90ebe317fe797e6b0aaf6808223->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fb00d90ebe317fe797e6b0aaf6808223, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fb00d90ebe317fe797e6b0aaf6808223, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_fb00d90ebe317fe797e6b0aaf6808223 == cache_frame_fb00d90ebe317fe797e6b0aaf6808223) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fb00d90ebe317fe797e6b0aaf6808223); - cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = NULL; - } - - assertFrameObject(frame_fb00d90ebe317fe797e6b0aaf6808223); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$unet3d$metrics$$$function__18_target_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_target = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_target); - tmp_return_value = par_target; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__19___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_metric = python_pars[2]; - PyObject *par_min_instance_size = python_pars[3]; - PyObject *par_input_channel = python_pars[4]; - PyObject *par_kwargs = python_pars[5]; - struct Nuitka_FrameObject *frame_7840753a58ffee472a48045eef486f18; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_7840753a58ffee472a48045eef486f18 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7840753a58ffee472a48045eef486f18)) { - Py_XDECREF(cache_frame_7840753a58ffee472a48045eef486f18); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7840753a58ffee472a48045eef486f18 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7840753a58ffee472a48045eef486f18 = MAKE_FUNCTION_FRAME(codeobj_7840753a58ffee472a48045eef486f18, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7840753a58ffee472a48045eef486f18->m_type_description == NULL); - frame_7840753a58ffee472a48045eef486f18 = cache_frame_7840753a58ffee472a48045eef486f18; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7840753a58ffee472a48045eef486f18); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7840753a58ffee472a48045eef486f18) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - CHECK_OBJECT(par_metric); - tmp_dict_value_1 = par_metric; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7840753a58ffee472a48045eef486f18->m_frame.f_lineno = 339; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[113]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 342; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7840753a58ffee472a48045eef486f18); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7840753a58ffee472a48045eef486f18); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7840753a58ffee472a48045eef486f18, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7840753a58ffee472a48045eef486f18->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7840753a58ffee472a48045eef486f18, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7840753a58ffee472a48045eef486f18, - type_description_1, - par_self, - par_thresholds, - par_metric, - par_min_instance_size, - par_input_channel, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_7840753a58ffee472a48045eef486f18 == cache_frame_7840753a58ffee472a48045eef486f18) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7840753a58ffee472a48045eef486f18); - cache_frame_7840753a58ffee472a48045eef486f18 = NULL; - } - - assertFrameObject(frame_7840753a58ffee472a48045eef486f18); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__20_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_mask = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_28390b239ba9d51ee3f330d3fa1ea492; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_28390b239ba9d51ee3f330d3fa1ea492)) { - Py_XDECREF(cache_frame_28390b239ba9d51ee3f330d3fa1ea492); - -#if _DEBUG_REFCOUNTS - if (cache_frame_28390b239ba9d51ee3f330d3fa1ea492 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = MAKE_FUNCTION_FRAME(codeobj_28390b239ba9d51ee3f330d3fa1ea492, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_28390b239ba9d51ee3f330d3fa1ea492->m_type_description == NULL); - frame_28390b239ba9d51ee3f330d3fa1ea492 = cache_frame_28390b239ba9d51ee3f330d3fa1ea492; - - // Push the new frame as the currently active one. - pushFrameStack(frame_28390b239ba9d51ee3f330d3fa1ea492); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_28390b239ba9d51ee3f330d3fa1ea492) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - exception_lineno = 349; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_expression_name_4 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[37]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 351; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_mask); - tmp_tuple_element_1 = var_mask; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 352; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 353; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_2 = var_seg; - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 353; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_segs; - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 354; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_28390b239ba9d51ee3f330d3fa1ea492, exception_lineno); - } else if (exception_tb->tb_frame != &frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_28390b239ba9d51ee3f330d3fa1ea492, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_28390b239ba9d51ee3f330d3fa1ea492, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_mask, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_28390b239ba9d51ee3f330d3fa1ea492 == cache_frame_28390b239ba9d51ee3f330d3fa1ea492) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_28390b239ba9d51ee3f330d3fa1ea492); - cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = NULL; - } - - assertFrameObject(frame_28390b239ba9d51ee3f330d3fa1ea492); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__21___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_metric = python_pars[2]; - PyObject *par_min_instance_size = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_914854f2ce28cebe09f6c205cabe789a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_914854f2ce28cebe09f6c205cabe789a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_914854f2ce28cebe09f6c205cabe789a)) { - Py_XDECREF(cache_frame_914854f2ce28cebe09f6c205cabe789a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_914854f2ce28cebe09f6c205cabe789a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_914854f2ce28cebe09f6c205cabe789a = MAKE_FUNCTION_FRAME(codeobj_914854f2ce28cebe09f6c205cabe789a, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_914854f2ce28cebe09f6c205cabe789a->m_type_description == NULL); - frame_914854f2ce28cebe09f6c205cabe789a = cache_frame_914854f2ce28cebe09f6c205cabe789a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_914854f2ce28cebe09f6c205cabe789a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_914854f2ce28cebe09f6c205cabe789a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - CHECK_OBJECT(par_metric); - tmp_dict_value_1 = par_metric; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_914854f2ce28cebe09f6c205cabe789a->m_frame.f_lineno = 364; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[114]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 367; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_914854f2ce28cebe09f6c205cabe789a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_914854f2ce28cebe09f6c205cabe789a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_914854f2ce28cebe09f6c205cabe789a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_914854f2ce28cebe09f6c205cabe789a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_914854f2ce28cebe09f6c205cabe789a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_914854f2ce28cebe09f6c205cabe789a, - type_description_1, - par_self, - par_thresholds, - par_metric, - par_min_instance_size, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_914854f2ce28cebe09f6c205cabe789a == cache_frame_914854f2ce28cebe09f6c205cabe789a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_914854f2ce28cebe09f6c205cabe789a); - cache_frame_914854f2ce28cebe09f6c205cabe789a = NULL; - } - - assertFrameObject(frame_914854f2ce28cebe09f6c205cabe789a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__22_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_mask = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_299471fa28284ce856fcc2bb0f99954f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_299471fa28284ce856fcc2bb0f99954f = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_299471fa28284ce856fcc2bb0f99954f)) { - Py_XDECREF(cache_frame_299471fa28284ce856fcc2bb0f99954f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_299471fa28284ce856fcc2bb0f99954f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_299471fa28284ce856fcc2bb0f99954f = MAKE_FUNCTION_FRAME(codeobj_299471fa28284ce856fcc2bb0f99954f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_299471fa28284ce856fcc2bb0f99954f->m_type_description == NULL); - frame_299471fa28284ce856fcc2bb0f99954f = cache_frame_299471fa28284ce856fcc2bb0f99954f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_299471fa28284ce856fcc2bb0f99954f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_299471fa28284ce856fcc2bb0f99954f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - tmp_subscript_name_1 = mod_consts[20]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_expression_name_2 = par_input; - tmp_subscript_name_2 = mod_consts[11]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - exception_lineno = 374; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_expression_name_4 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[37]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 376; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_mask); - tmp_tuple_element_1 = var_mask; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 377; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_2 = var_seg; - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 378; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_segs; - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 379; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_299471fa28284ce856fcc2bb0f99954f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_299471fa28284ce856fcc2bb0f99954f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_299471fa28284ce856fcc2bb0f99954f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_299471fa28284ce856fcc2bb0f99954f, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_mask, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_299471fa28284ce856fcc2bb0f99954f == cache_frame_299471fa28284ce856fcc2bb0f99954f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_299471fa28284ce856fcc2bb0f99954f); - cache_frame_299471fa28284ce856fcc2bb0f99954f = NULL; - } - - assertFrameObject(frame_299471fa28284ce856fcc2bb0f99954f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__23___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_min_instance_size = python_pars[2]; - PyObject *par_input_channel = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_2eb4e4f6c5da0f8b4962b907098bd1f5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5)) { - Py_XDECREF(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = MAKE_FUNCTION_FRAME(codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_type_description == NULL); - frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2eb4e4f6c5da0f8b4962b907098bd1f5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_frame.f_lineno = 388; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 391; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2eb4e4f6c5da0f8b4962b907098bd1f5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2eb4e4f6c5da0f8b4962b907098bd1f5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2eb4e4f6c5da0f8b4962b907098bd1f5, - type_description_1, - par_self, - par_thresholds, - par_min_instance_size, - par_input_channel, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_2eb4e4f6c5da0f8b4962b907098bd1f5 == cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = NULL; - } - - assertFrameObject(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__24_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_5939483b3ea62df720d54e2d3cdb595f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_5939483b3ea62df720d54e2d3cdb595f = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5939483b3ea62df720d54e2d3cdb595f)) { - Py_XDECREF(cache_frame_5939483b3ea62df720d54e2d3cdb595f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5939483b3ea62df720d54e2d3cdb595f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5939483b3ea62df720d54e2d3cdb595f = MAKE_FUNCTION_FRAME(codeobj_5939483b3ea62df720d54e2d3cdb595f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5939483b3ea62df720d54e2d3cdb595f->m_type_description == NULL); - frame_5939483b3ea62df720d54e2d3cdb595f = cache_frame_5939483b3ea62df720d54e2d3cdb595f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5939483b3ea62df720d54e2d3cdb595f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5939483b3ea62df720d54e2d3cdb595f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 398; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[84]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[82]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_args_element_name_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_expression_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[50]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[37]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_tuple_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 400; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_3 = var_seg; - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 400; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 400; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_4; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_segs; - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 401; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5939483b3ea62df720d54e2d3cdb595f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5939483b3ea62df720d54e2d3cdb595f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5939483b3ea62df720d54e2d3cdb595f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5939483b3ea62df720d54e2d3cdb595f, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_5939483b3ea62df720d54e2d3cdb595f == cache_frame_5939483b3ea62df720d54e2d3cdb595f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5939483b3ea62df720d54e2d3cdb595f); - cache_frame_5939483b3ea62df720d54e2d3cdb595f = NULL; - } - - assertFrameObject(frame_5939483b3ea62df720d54e2d3cdb595f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__25___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__26___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_30651049ccf86cdd063b55ec7a4fa364; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_30651049ccf86cdd063b55ec7a4fa364 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_30651049ccf86cdd063b55ec7a4fa364)) { - Py_XDECREF(cache_frame_30651049ccf86cdd063b55ec7a4fa364); - -#if _DEBUG_REFCOUNTS - if (cache_frame_30651049ccf86cdd063b55ec7a4fa364 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_30651049ccf86cdd063b55ec7a4fa364 = MAKE_FUNCTION_FRAME(codeobj_30651049ccf86cdd063b55ec7a4fa364, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_30651049ccf86cdd063b55ec7a4fa364->m_type_description == NULL); - frame_30651049ccf86cdd063b55ec7a4fa364 = cache_frame_30651049ccf86cdd063b55ec7a4fa364; - - // Push the new frame as the currently active one. - pushFrameStack(frame_30651049ccf86cdd063b55ec7a4fa364); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_30651049ccf86cdd063b55ec7a4fa364) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_30651049ccf86cdd063b55ec7a4fa364->m_frame.f_lineno = 413; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[115]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[115]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_args_element_name_3 = par_target; - CHECK_OBJECT(par_input); - tmp_args_element_name_4 = par_input; - frame_30651049ccf86cdd063b55ec7a4fa364->m_frame.f_lineno = 414; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_30651049ccf86cdd063b55ec7a4fa364, exception_lineno); - } else if (exception_tb->tb_frame != &frame_30651049ccf86cdd063b55ec7a4fa364->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_30651049ccf86cdd063b55ec7a4fa364, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_30651049ccf86cdd063b55ec7a4fa364, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_30651049ccf86cdd063b55ec7a4fa364 == cache_frame_30651049ccf86cdd063b55ec7a4fa364) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_30651049ccf86cdd063b55ec7a4fa364); - cache_frame_30651049ccf86cdd063b55ec7a4fa364 = NULL; - } - - assertFrameObject(frame_30651049ccf86cdd063b55ec7a4fa364); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__27___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__28___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_2d44772b57531805600dabf6c833f211; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_2d44772b57531805600dabf6c833f211 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2d44772b57531805600dabf6c833f211)) { - Py_XDECREF(cache_frame_2d44772b57531805600dabf6c833f211); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2d44772b57531805600dabf6c833f211 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2d44772b57531805600dabf6c833f211 = MAKE_FUNCTION_FRAME(codeobj_2d44772b57531805600dabf6c833f211, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2d44772b57531805600dabf6c833f211->m_type_description == NULL); - frame_2d44772b57531805600dabf6c833f211 = cache_frame_2d44772b57531805600dabf6c833f211; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2d44772b57531805600dabf6c833f211); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2d44772b57531805600dabf6c833f211) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_2d44772b57531805600dabf6c833f211->m_frame.f_lineno = 426; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[116]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[116]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 427; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_3 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_4 = par_target; - frame_2d44772b57531805600dabf6c833f211->m_frame.f_lineno = 427; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 427; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2d44772b57531805600dabf6c833f211, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2d44772b57531805600dabf6c833f211->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2d44772b57531805600dabf6c833f211, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2d44772b57531805600dabf6c833f211, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_2d44772b57531805600dabf6c833f211 == cache_frame_2d44772b57531805600dabf6c833f211) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2d44772b57531805600dabf6c833f211); - cache_frame_2d44772b57531805600dabf6c833f211 = NULL; - } - - assertFrameObject(frame_2d44772b57531805600dabf6c833f211); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__29_get_evaluation_metric(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *var__metric_class = NULL; - PyObject *var_metric_config = NULL; - PyObject *var_metric_class = NULL; - struct Nuitka_FrameObject *frame_e3c6ef6ba02f733011711ea56309b825; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e3c6ef6ba02f733011711ea56309b825 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(); - - assert(var__metric_class == NULL); - var__metric_class = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_e3c6ef6ba02f733011711ea56309b825)) { - Py_XDECREF(cache_frame_e3c6ef6ba02f733011711ea56309b825); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e3c6ef6ba02f733011711ea56309b825 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e3c6ef6ba02f733011711ea56309b825 = MAKE_FUNCTION_FRAME(codeobj_e3c6ef6ba02f733011711ea56309b825, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e3c6ef6ba02f733011711ea56309b825->m_type_description == NULL); - frame_e3c6ef6ba02f733011711ea56309b825 = cache_frame_e3c6ef6ba02f733011711ea56309b825; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e3c6ef6ba02f733011711ea56309b825); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e3c6ef6ba02f733011711ea56309b825) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[119]; - CHECK_OBJECT(par_config); - tmp_compexpr_right_1 = par_config; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[120]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 442; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_subscript_name_1 = mod_consts[119]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_metric_config == NULL); - var_metric_config = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var__metric_class); - tmp_called_name_1 = var__metric_class; - CHECK_OBJECT(var_metric_config); - tmp_expression_name_2 = var_metric_config; - tmp_subscript_name_2 = mod_consts[121]; - tmp_args_element_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_e3c6ef6ba02f733011711ea56309b825->m_frame.f_lineno = 444; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_metric_class == NULL); - var_metric_class = tmp_assign_source_3; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - CHECK_OBJECT(var_metric_class); - tmp_dircall_arg1_1 = var_metric_class; - CHECK_OBJECT(var_metric_config); - tmp_dircall_arg2_1 = var_metric_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e3c6ef6ba02f733011711ea56309b825, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e3c6ef6ba02f733011711ea56309b825->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e3c6ef6ba02f733011711ea56309b825, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e3c6ef6ba02f733011711ea56309b825, - type_description_1, - par_config, - var__metric_class, - var_metric_config, - var_metric_class - ); - - - // Release cached frame if used for exception. - if (frame_e3c6ef6ba02f733011711ea56309b825 == cache_frame_e3c6ef6ba02f733011711ea56309b825) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e3c6ef6ba02f733011711ea56309b825); - cache_frame_e3c6ef6ba02f733011711ea56309b825 = NULL; - } - - assertFrameObject(frame_e3c6ef6ba02f733011711ea56309b825); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__metric_class); - Py_DECREF(var__metric_class); - var__metric_class = NULL; - CHECK_OBJECT(var_metric_config); - Py_DECREF(var_metric_config); - var_metric_config = NULL; - CHECK_OBJECT(var_metric_class); - Py_DECREF(var_metric_class); - var_metric_class = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__metric_class); - Py_DECREF(var__metric_class); - var__metric_class = NULL; - Py_XDECREF(var_metric_config); - var_metric_config = NULL; - Py_XDECREF(var_metric_class); - var_metric_class = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_class_name = python_pars[0]; - PyObject *var_m = NULL; - PyObject *var_clazz = NULL; - struct Nuitka_FrameObject *frame_c463a7dbb13c425ed40fd700772abbe8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_c463a7dbb13c425ed40fd700772abbe8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c463a7dbb13c425ed40fd700772abbe8)) { - Py_XDECREF(cache_frame_c463a7dbb13c425ed40fd700772abbe8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c463a7dbb13c425ed40fd700772abbe8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c463a7dbb13c425ed40fd700772abbe8 = MAKE_FUNCTION_FRAME(codeobj_c463a7dbb13c425ed40fd700772abbe8, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c463a7dbb13c425ed40fd700772abbe8->m_type_description == NULL); - frame_c463a7dbb13c425ed40fd700772abbe8 = cache_frame_c463a7dbb13c425ed40fd700772abbe8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c463a7dbb13c425ed40fd700772abbe8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c463a7dbb13c425ed40fd700772abbe8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[123]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[123]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_c463a7dbb13c425ed40fd700772abbe8->m_frame.f_lineno = 438; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[124], - &PyTuple_GET_ITEM(mod_consts[125], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_m == NULL); - var_m = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - CHECK_OBJECT(var_m); - tmp_getattr_target_1 = var_m; - CHECK_OBJECT(par_class_name); - tmp_getattr_attr_1 = par_class_name; - tmp_assign_source_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, NULL); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 439; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_clazz == NULL); - var_clazz = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c463a7dbb13c425ed40fd700772abbe8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c463a7dbb13c425ed40fd700772abbe8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c463a7dbb13c425ed40fd700772abbe8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c463a7dbb13c425ed40fd700772abbe8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c463a7dbb13c425ed40fd700772abbe8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c463a7dbb13c425ed40fd700772abbe8, - type_description_1, - par_class_name, - var_m, - var_clazz - ); - - - // Release cached frame if used for exception. - if (frame_c463a7dbb13c425ed40fd700772abbe8 == cache_frame_c463a7dbb13c425ed40fd700772abbe8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c463a7dbb13c425ed40fd700772abbe8); - cache_frame_c463a7dbb13c425ed40fd700772abbe8 = NULL; - } - - assertFrameObject(frame_c463a7dbb13c425ed40fd700772abbe8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_clazz); - tmp_return_value = var_clazz; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_class_name); - Py_DECREF(par_class_name); - par_class_name = NULL; - CHECK_OBJECT(var_m); - Py_DECREF(var_m); - var_m = NULL; - CHECK_OBJECT(var_clazz); - Py_DECREF(var_clazz); - var_clazz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_class_name); - Py_DECREF(par_class_name); - par_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__10___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[179], -#endif - codeobj_1d51fefa562de680476f0ff4599fe161, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__11_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_1b065ad043e94dde4abbeb05ae11c727, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__12___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[184], -#endif - codeobj_15029efea78ca37b23d40989b01f6a0a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__13_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[185], -#endif - codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__14___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[189], -#endif - codeobj_c01d4c493e093c7de00d919c7dbc97f3, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__15___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_addffaf71f67b562ba4f792bfe1d9f33, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__16__filter_instances, - mod_consts[103], -#if PYTHON_VERSION >= 0x300 - mod_consts[191], -#endif - codeobj_6d22b487fe6bb506aeab8c6f44f9fb50, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[112], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__17_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[193], -#endif - codeobj_fb00d90ebe317fe797e6b0aaf6808223, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__18_target_to_seg, - mod_consts[101], -#if PYTHON_VERSION >= 0x300 - mod_consts[194], -#endif - codeobj_1fe68f10d21aab4314bc2d9433ea7e6d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__19___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[198], -#endif - codeobj_7840753a58ffee472a48045eef486f18, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__1___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[158], -#endif - codeobj_3683e3c7caa72ba2b301b3459a3c874e, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__20_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[199], -#endif - codeobj_28390b239ba9d51ee3f330d3fa1ea492, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__21___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[203], -#endif - codeobj_914854f2ce28cebe09f6c205cabe789a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__22_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[204], -#endif - codeobj_299471fa28284ce856fcc2bb0f99954f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__23___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[208], -#endif - codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__24_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[209], -#endif - codeobj_5939483b3ea62df720d54e2d3cdb595f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__25___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[213], -#endif - codeobj_fe4dd1bb443ed6d52978af57ca08be53, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__26___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[214], -#endif - codeobj_30651049ccf86cdd063b55ec7a4fa364, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__27___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[218], -#endif - codeobj_50a9020e6a51f1105daf1f222e909ae4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__28___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[219], -#endif - codeobj_2d44772b57531805600dabf6c833f211, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric, - mod_consts[220], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e3c6ef6ba02f733011711ea56309b825, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[122], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class, - mod_consts[117], -#if PYTHON_VERSION >= 0x300 - mod_consts[118], -#endif - codeobj_c463a7dbb13c425ed40fd700772abbe8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__2___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[160], -#endif - codeobj_739414be80f1099a2cddef3246c0c91d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__3___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[165], -#endif - codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[6], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__4___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[166], -#endif - codeobj_c0f8ba1eff149bb00d08b0021f15f590, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[30], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__5__binarize_predictions, - mod_consts[18], -#if PYTHON_VERSION >= 0x300 - mod_consts[167], -#endif - codeobj_a4b23dac5778bf03565b51ee2cf73c40, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[39], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__6__jaccard_index, - mod_consts[26], -#if PYTHON_VERSION >= 0x300 - mod_consts[168], -#endif - codeobj_5da5d8dd8341dd90a301f5c1751530a7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[45], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__7___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[173], -#endif - codeobj_6743357ccf7c82940fdd3986d828807c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__8___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[174], -#endif - codeobj_37251eb0c36bb09af4c0657f634957f5, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[69], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__9_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[175], -#endif - codeobj_8f9bfd09bcf73e307b173aa11c64832f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[70], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$metrics[] = { - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class, - impl_models$unet3d$metrics$$$function__1___init__, - impl_models$unet3d$metrics$$$function__2___call__, - impl_models$unet3d$metrics$$$function__3___init__, - impl_models$unet3d$metrics$$$function__4___call__, - impl_models$unet3d$metrics$$$function__5__binarize_predictions, - impl_models$unet3d$metrics$$$function__6__jaccard_index, - impl_models$unet3d$metrics$$$function__7___init__, - impl_models$unet3d$metrics$$$function__8___call__, - impl_models$unet3d$metrics$$$function__9_input_to_segm, - impl_models$unet3d$metrics$$$function__10___init__, - impl_models$unet3d$metrics$$$function__11_input_to_segm, - impl_models$unet3d$metrics$$$function__12___init__, - impl_models$unet3d$metrics$$$function__13_input_to_segm, - impl_models$unet3d$metrics$$$function__14___init__, - impl_models$unet3d$metrics$$$function__15___call__, - impl_models$unet3d$metrics$$$function__16__filter_instances, - impl_models$unet3d$metrics$$$function__17_input_to_seg, - impl_models$unet3d$metrics$$$function__18_target_to_seg, - impl_models$unet3d$metrics$$$function__19___init__, - impl_models$unet3d$metrics$$$function__20_input_to_seg, - impl_models$unet3d$metrics$$$function__21___init__, - impl_models$unet3d$metrics$$$function__22_input_to_seg, - impl_models$unet3d$metrics$$$function__23___init__, - impl_models$unet3d$metrics$$$function__24_input_to_seg, - impl_models$unet3d$metrics$$$function__25___init__, - impl_models$unet3d$metrics$$$function__26___call__, - impl_models$unet3d$metrics$$$function__27___init__, - impl_models$unet3d$metrics$$$function__28___call__, - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$metrics; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$metrics) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$metrics[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$metrics, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$metrics(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$metrics = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$metrics\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$metrics = MODULE_DICT(module_models$unet3d$metrics); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$metrics); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$metrics); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_5_var___class__ = NULL; - struct Nuitka_CellObject *outline_6_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_7_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_8_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_9_var___class__ = NULL; - PyObject *outline_10_var___class__ = NULL; - PyObject *tmp_class_creation_10__class_decl_dict = NULL; - PyObject *tmp_class_creation_10__metaclass = NULL; - PyObject *tmp_class_creation_10__prepared = NULL; - PyObject *tmp_class_creation_11__class_decl_dict = NULL; - PyObject *tmp_class_creation_11__metaclass = NULL; - PyObject *tmp_class_creation_11__prepared = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_class_creation_9__bases = NULL; - PyObject *tmp_class_creation_9__bases_orig = NULL; - PyObject *tmp_class_creation_9__class_decl_dict = NULL; - PyObject *tmp_class_creation_9__metaclass = NULL; - PyObject *tmp_class_creation_9__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - struct Nuitka_FrameObject *frame_0cf8f15b912f59c3df11f1bc1cb3fea0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_2bba83743ec6097e610836f64263d12c_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_2bba83743ec6097e610836f64263d12c_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - struct Nuitka_FrameObject *frame_ea86a78d4b88f338243492fda90f9024_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_ea86a78d4b88f338243492fda90f9024_3 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - struct Nuitka_FrameObject *frame_6a79547a3227bd3687d03320c888a7d5_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - struct Nuitka_FrameObject *frame_8e5ee399b651fc84fb09e0543608ba47_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - struct Nuitka_FrameObject *frame_e59924c010f350a33847b7bc37fb8c13_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - struct Nuitka_FrameObject *frame_b75ff7e24434e35dfc56d4768e73ec18_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = NULL; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - struct Nuitka_FrameObject *frame_e88cbe919e4943422eaca3092583f68c_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_e88cbe919e4943422eaca3092583f68c_8 = NULL; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - struct Nuitka_FrameObject *frame_9dcbcaa61a62b4193359e4eafa1dff12_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = NULL; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - struct Nuitka_FrameObject *frame_5fc270cde0051c2eaf563a16fdfd133c_10; - NUITKA_MAY_BE_UNUSED char const *type_description_10 = NULL; - static struct Nuitka_FrameObject *cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = NULL; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - struct Nuitka_FrameObject *frame_72a00a732f540edac0bacfbeb9ebea2b_11; - NUITKA_MAY_BE_UNUSED char const *type_description_11 = NULL; - static struct Nuitka_FrameObject *cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = NULL; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - PyObject *exception_keeper_type_32; - PyObject *exception_keeper_value_32; - PyTracebackObject *exception_keeper_tb_32; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_32; - PyObject *exception_keeper_type_33; - PyObject *exception_keeper_value_33; - PyTracebackObject *exception_keeper_tb_33; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_33; - PyObject *locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - struct Nuitka_FrameObject *frame_a46b4a5c8a31bf4bad1959b4462967d8_12; - NUITKA_MAY_BE_UNUSED char const *type_description_12 = NULL; - static struct Nuitka_FrameObject *cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = NULL; - PyObject *exception_keeper_type_34; - PyObject *exception_keeper_value_34; - PyTracebackObject *exception_keeper_tb_34; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_34; - PyObject *exception_keeper_type_35; - PyObject *exception_keeper_value_35; - PyTracebackObject *exception_keeper_tb_35; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_35; - PyObject *exception_keeper_type_36; - PyObject *exception_keeper_value_36; - PyTracebackObject *exception_keeper_tb_36; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_36; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[126], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[127], tmp_assign_source_2); - } - // Frame without reuse. - frame_0cf8f15b912f59c3df11f1bc1cb3fea0 = MAKE_MODULE_FRAME(codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0, module_models$unet3d$metrics); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); - assert(Py_REFCNT(frame_0cf8f15b912f59c3df11f1bc1cb3fea0) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[129], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[130], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[131], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_HARD_IMPORTLIB(); - assert(!(tmp_assign_source_4 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[123], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[132]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[1]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 4; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[133]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[134]; - tmp_level_name_3 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 5; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[83], - mod_consts[20] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[83]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[135]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[136]; - tmp_level_name_4 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 6; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[63], - mod_consts[20] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[63]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[63], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[115], - mod_consts[20] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[115]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[115], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[116], - mod_consts[20] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[116]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[116], tmp_assign_source_11); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[137]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[138]; - tmp_level_name_5 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 8; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[3], - mod_consts[20] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[3]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[139]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[140]; - tmp_level_name_6 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 9; - tmp_assign_source_13 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_13; - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_6 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[94], - mod_consts[20] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[94]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[94], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_7 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[96], - mod_consts[20] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[96]); - } - - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[96], tmp_assign_source_15); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[141]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[142]; - tmp_level_name_7 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 10; - tmp_assign_source_16 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_16; - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_8 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[143], - mod_consts[20] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[143]); - } - - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[143], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_import_name_from_9; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_9 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_18 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[13], - mod_consts[20] - ); - } else { - tmp_assign_source_18 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[13]); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_10; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_10 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[47], - mod_consts[20] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[47]); - } - - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_19); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 12; - tmp_assign_source_20 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[144]); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_21; - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[145]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[146]; - tmp_assign_source_22 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_22; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_1 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[147]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[147]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_args_name_1 = mod_consts[148]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 15; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_23; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_3 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[149]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[151]; - tmp_getattr_default_1 = mod_consts[152]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_4 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_4 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[151]); - Py_DECREF(tmp_expression_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 15; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_24; - } - branch_end_2:; - { - PyObject *tmp_assign_source_25; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[154]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_2bba83743ec6097e610836f64263d12c_2)) { - Py_XDECREF(cache_frame_2bba83743ec6097e610836f64263d12c_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2bba83743ec6097e610836f64263d12c_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2bba83743ec6097e610836f64263d12c_2 = MAKE_FUNCTION_FRAME(codeobj_2bba83743ec6097e610836f64263d12c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2bba83743ec6097e610836f64263d12c_2->m_type_description == NULL); - frame_2bba83743ec6097e610836f64263d12c_2 = cache_frame_2bba83743ec6097e610836f64263d12c_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2bba83743ec6097e610836f64263d12c_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2bba83743ec6097e610836f64263d12c_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[157]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bba83743ec6097e610836f64263d12c_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bba83743ec6097e610836f64263d12c_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2bba83743ec6097e610836f64263d12c_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2bba83743ec6097e610836f64263d12c_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2bba83743ec6097e610836f64263d12c_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2bba83743ec6097e610836f64263d12c_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2bba83743ec6097e610836f64263d12c_2 == cache_frame_2bba83743ec6097e610836f64263d12c_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2bba83743ec6097e610836f64263d12c_2); - cache_frame_2bba83743ec6097e610836f64263d12c_2 = NULL; - } - - assertFrameObject(frame_2bba83743ec6097e610836f64263d12c_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_6; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[155]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 15; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_26; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_25 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_25); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15); - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15); - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 15; - goto try_except_handler_4; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[155], tmp_assign_source_25); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[145]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_2:; - tmp_bases_name_2 = mod_consts[146]; - tmp_assign_source_28 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_6 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_5 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[147]); - tmp_condition_result_7 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_6 = tmp_class_creation_2__metaclass; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[147]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_args_name_3 = mod_consts[161]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 32; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_29; - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_7; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_7 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_7, mod_consts[149]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[151]; - tmp_getattr_default_2 = mod_consts[152]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_8; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_2 = tmp_class_creation_2__prepared; - tmp_expression_name_8 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_8 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[151]); - Py_DECREF(tmp_expression_name_8); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 32; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_6:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_30; - tmp_assign_source_30 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_30; - } - branch_end_5:; - { - PyObject *tmp_assign_source_31; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[162]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[163]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_ea86a78d4b88f338243492fda90f9024_3)) { - Py_XDECREF(cache_frame_ea86a78d4b88f338243492fda90f9024_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ea86a78d4b88f338243492fda90f9024_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ea86a78d4b88f338243492fda90f9024_3 = MAKE_FUNCTION_FRAME(codeobj_ea86a78d4b88f338243492fda90f9024, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ea86a78d4b88f338243492fda90f9024_3->m_type_description == NULL); - frame_ea86a78d4b88f338243492fda90f9024_3 = cache_frame_ea86a78d4b88f338243492fda90f9024_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ea86a78d4b88f338243492fda90f9024_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ea86a78d4b88f338243492fda90f9024_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[164]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[18], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[26], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea86a78d4b88f338243492fda90f9024_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea86a78d4b88f338243492fda90f9024_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ea86a78d4b88f338243492fda90f9024_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ea86a78d4b88f338243492fda90f9024_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ea86a78d4b88f338243492fda90f9024_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ea86a78d4b88f338243492fda90f9024_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ea86a78d4b88f338243492fda90f9024_3 == cache_frame_ea86a78d4b88f338243492fda90f9024_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ea86a78d4b88f338243492fda90f9024_3); - cache_frame_ea86a78d4b88f338243492fda90f9024_3 = NULL; - } - - assertFrameObject(frame_ea86a78d4b88f338243492fda90f9024_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_9; - skip_nested_handling_2:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_5 = tmp_class_creation_2__metaclass; - tmp_tuple_element_4 = mod_consts[163]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$metrics$$$class__2_MeanIoU_32; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 32; - tmp_assign_source_32 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_32; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_31 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_31); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$metrics$$$class__2_MeanIoU_32); - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__2_MeanIoU_32); - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 32; - goto try_except_handler_7; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[163], tmp_assign_source_31); - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_33; - tmp_assign_source_33 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_33; - } - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[145]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - goto condexpr_end_3; - condexpr_false_3:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_3:; - tmp_bases_name_3 = mod_consts[146]; - tmp_assign_source_34 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - branch_no_7:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_9 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[147]); - tmp_condition_result_11 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_10 = tmp_class_creation_3__metaclass; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[147]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_args_name_5 = mod_consts[169]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 107; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_11 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[149]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_condition_result_12 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_5; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[151]; - tmp_getattr_default_3 = mod_consts[152]; - tmp_tuple_element_5 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_3; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_3 = tmp_class_creation_3__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_3); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[151]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 107; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_9:; - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - branch_end_8:; - { - PyObject *tmp_assign_source_37; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[170]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[171]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_6a79547a3227bd3687d03320c888a7d5_4)) { - Py_XDECREF(cache_frame_6a79547a3227bd3687d03320c888a7d5_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6a79547a3227bd3687d03320c888a7d5_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = MAKE_FUNCTION_FRAME(codeobj_6a79547a3227bd3687d03320c888a7d5, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6a79547a3227bd3687d03320c888a7d5_4->m_type_description == NULL); - frame_6a79547a3227bd3687d03320c888a7d5_4 = cache_frame_6a79547a3227bd3687d03320c888a7d5_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6a79547a3227bd3687d03320c888a7d5_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6a79547a3227bd3687d03320c888a7d5_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[172]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6a79547a3227bd3687d03320c888a7d5_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6a79547a3227bd3687d03320c888a7d5_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6a79547a3227bd3687d03320c888a7d5_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6a79547a3227bd3687d03320c888a7d5_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6a79547a3227bd3687d03320c888a7d5_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6a79547a3227bd3687d03320c888a7d5_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6a79547a3227bd3687d03320c888a7d5_4 == cache_frame_6a79547a3227bd3687d03320c888a7d5_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6a79547a3227bd3687d03320c888a7d5_4); - cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = NULL; - } - - assertFrameObject(frame_6a79547a3227bd3687d03320c888a7d5_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_12; - skip_nested_handling_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_7 = tmp_class_creation_3__metaclass; - tmp_tuple_element_6 = mod_consts[171]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_6); - tmp_tuple_element_6 = locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 107; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_38; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_37 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_37); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107); - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107); - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 107; - goto try_except_handler_10; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171], tmp_assign_source_37); - } - goto try_end_6; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_39; - PyObject *tmp_tuple_element_7; - tmp_tuple_element_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_tuple_element_7 == NULL)) { - tmp_tuple_element_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_assign_source_39 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_39, 0, tmp_tuple_element_7); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_40 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - tmp_assign_source_41 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_41; - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_1; - PyObject *tmp_type_arg_4; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[145]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - goto condexpr_end_4; - condexpr_false_4:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_condition_result_14 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_13 = tmp_class_creation_4__bases; - tmp_subscript_name_1 = mod_consts[20]; - tmp_type_arg_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_1, 0); - if (tmp_type_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_4); - Py_DECREF(tmp_type_arg_4); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - goto condexpr_end_5; - condexpr_false_5:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_5:; - condexpr_end_4:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_42 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_42; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - branch_no_10:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_14; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_14 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_14, mod_consts[147]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_assign_source_43; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_15 = tmp_class_creation_4__metaclass; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[147]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_tuple_element_8 = mod_consts[176]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_8 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 182; - tmp_assign_source_43 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_43; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_16 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[149]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_9; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[151]; - tmp_getattr_default_4 = mod_consts[152]; - tmp_tuple_element_9 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_17; - PyObject *tmp_type_arg_5; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_5 = tmp_class_creation_4__prepared; - tmp_expression_name_17 = BUILTIN_TYPE1(tmp_type_arg_5); - assert(!(tmp_expression_name_17 == NULL)); - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[151]); - Py_DECREF(tmp_expression_name_17); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_13; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 182; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_13; - } - branch_no_12:; - goto branch_end_11; - branch_no_11:; - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_44; - } - branch_end_11:; - { - PyObject *tmp_assign_source_45; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[177]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[176]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - if (isFrameUnusable(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5)) { - Py_XDECREF(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = MAKE_FUNCTION_FRAME(codeobj_8e5ee399b651fc84fb09e0543608ba47, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5->m_type_description == NULL); - frame_8e5ee399b651fc84fb09e0543608ba47_5 = cache_frame_8e5ee399b651fc84fb09e0543608ba47_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8e5ee399b651fc84fb09e0543608ba47_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8e5ee399b651fc84fb09e0543608ba47_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_defaults_4 = mod_consts[178]; - Py_INCREF(tmp_defaults_4); - - tmp_closure_1[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(tmp_defaults_4, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e5ee399b651fc84fb09e0543608ba47_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e5ee399b651fc84fb09e0543608ba47_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8e5ee399b651fc84fb09e0543608ba47_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8e5ee399b651fc84fb09e0543608ba47_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8e5ee399b651fc84fb09e0543608ba47_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8e5ee399b651fc84fb09e0543608ba47_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8e5ee399b651fc84fb09e0543608ba47_5 == cache_frame_8e5ee399b651fc84fb09e0543608ba47_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5); - cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = NULL; - } - - assertFrameObject(frame_8e5ee399b651fc84fb09e0543608ba47_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_15; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_1 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_4__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - branch_no_13:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_9; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_9 = tmp_class_creation_4__metaclass; - tmp_tuple_element_10 = mod_consts[176]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_10 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 182; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_46); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_45 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_45); - goto try_return_handler_15; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_DECREF(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182); - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - goto try_return_handler_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182); - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_14; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 182; - goto try_except_handler_13; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[176], tmp_assign_source_45); - } - goto try_end_7; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_47; - PyObject *tmp_tuple_element_11; - tmp_tuple_element_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_tuple_element_11 == NULL)) { - tmp_tuple_element_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_assign_source_47 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_47, 0, tmp_tuple_element_11); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_48 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - tmp_assign_source_49 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_49; - } - { - PyObject *tmp_assign_source_50; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_2; - PyObject *tmp_type_arg_6; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[145]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - goto condexpr_end_6; - condexpr_false_6:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_condition_result_20 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_18 = tmp_class_creation_5__bases; - tmp_subscript_name_2 = mod_consts[20]; - tmp_type_arg_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_18, tmp_subscript_name_2, 0); - if (tmp_type_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_6); - Py_DECREF(tmp_type_arg_6); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - goto condexpr_end_7; - condexpr_false_7:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_7:; - condexpr_end_6:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_50 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_50; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - branch_no_14:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_19 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[147]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_assign_source_51; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_20 = tmp_class_creation_5__metaclass; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[147]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_tuple_element_12 = mod_consts[182]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_12 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 223; - tmp_assign_source_51 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_51; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_21; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_21 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_21, mod_consts[149]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_13; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[151]; - tmp_getattr_default_5 = mod_consts[152]; - tmp_tuple_element_13 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_22; - PyObject *tmp_type_arg_7; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_13); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_7 = tmp_class_creation_5__prepared; - tmp_expression_name_22 = BUILTIN_TYPE1(tmp_type_arg_7); - assert(!(tmp_expression_name_22 == NULL)); - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[151]); - Py_DECREF(tmp_expression_name_22); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_13); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_16; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 223; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_16; - } - branch_no_16:; - goto branch_end_15; - branch_no_15:; - { - PyObject *tmp_assign_source_52; - tmp_assign_source_52 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_52; - } - branch_end_15:; - { - PyObject *tmp_assign_source_53; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - tmp_dictset_value = mod_consts[182]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - if (isFrameUnusable(cache_frame_e59924c010f350a33847b7bc37fb8c13_6)) { - Py_XDECREF(cache_frame_e59924c010f350a33847b7bc37fb8c13_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e59924c010f350a33847b7bc37fb8c13_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = MAKE_FUNCTION_FRAME(codeobj_e59924c010f350a33847b7bc37fb8c13, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e59924c010f350a33847b7bc37fb8c13_6->m_type_description == NULL); - frame_e59924c010f350a33847b7bc37fb8c13_6 = cache_frame_e59924c010f350a33847b7bc37fb8c13_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e59924c010f350a33847b7bc37fb8c13_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e59924c010f350a33847b7bc37fb8c13_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_5 = mod_consts[183]; - Py_INCREF(tmp_defaults_5); - - tmp_closure_2[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(tmp_defaults_5, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e59924c010f350a33847b7bc37fb8c13_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e59924c010f350a33847b7bc37fb8c13_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e59924c010f350a33847b7bc37fb8c13_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e59924c010f350a33847b7bc37fb8c13_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e59924c010f350a33847b7bc37fb8c13_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e59924c010f350a33847b7bc37fb8c13_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e59924c010f350a33847b7bc37fb8c13_6 == cache_frame_e59924c010f350a33847b7bc37fb8c13_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e59924c010f350a33847b7bc37fb8c13_6); - cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = NULL; - } - - assertFrameObject(frame_e59924c010f350a33847b7bc37fb8c13_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_18; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_2 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_5__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - branch_no_17:; - { - PyObject *tmp_assign_source_54; - PyObject *tmp_called_name_11; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_11 = tmp_class_creation_5__metaclass; - tmp_tuple_element_14 = mod_consts[182]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_14 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_14); - tmp_tuple_element_14 = locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 223; - tmp_assign_source_54 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_54); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_53 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_53); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_DECREF(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223); - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - goto try_return_handler_17; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223); - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_17; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 223; - goto try_except_handler_16; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[182], tmp_assign_source_53); - } - goto try_end_8; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_55; - tmp_assign_source_55 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_55; - } - // Tried code: - { - PyObject *tmp_assign_source_56; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[145]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_8:; - tmp_bases_name_6 = mod_consts[146]; - tmp_assign_source_56 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_26; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_26 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - branch_no_18:; - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_23 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[147]); - tmp_condition_result_27 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_assign_source_57; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_11; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_24 = tmp_class_creation_6__metaclass; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[147]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_args_name_11 = mod_consts[186]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 260; - tmp_assign_source_57 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_12); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_57; - } - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_25 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[149]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_condition_result_28 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - } - branch_yes_20:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[151]; - tmp_getattr_default_6 = mod_consts[152]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_8 = tmp_class_creation_6__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[151]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_19; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 260; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_19; - } - branch_no_20:; - goto branch_end_19; - branch_no_19:; - { - PyObject *tmp_assign_source_58; - tmp_assign_source_58 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_58; - } - branch_end_19:; - { - PyObject *tmp_assign_source_59; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - tmp_dictset_value = mod_consts[187]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - if (isFrameUnusable(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7)) { - Py_XDECREF(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = MAKE_FUNCTION_FRAME(codeobj_b75ff7e24434e35dfc56d4768e73ec18, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7->m_type_description == NULL); - frame_b75ff7e24434e35dfc56d4768e73ec18_7 = cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b75ff7e24434e35dfc56d4768e73ec18_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b75ff7e24434e35dfc56d4768e73ec18_7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_6; - tmp_defaults_6 = mod_consts[188]; - Py_INCREF(tmp_defaults_6); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(tmp_defaults_6); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[103], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - { - PyObject *tmp_defaults_7; - tmp_defaults_7 = mod_consts[192]; - Py_INCREF(tmp_defaults_7); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(tmp_defaults_7); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[101], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b75ff7e24434e35dfc56d4768e73ec18_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b75ff7e24434e35dfc56d4768e73ec18_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b75ff7e24434e35dfc56d4768e73ec18_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b75ff7e24434e35dfc56d4768e73ec18_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b75ff7e24434e35dfc56d4768e73ec18_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b75ff7e24434e35dfc56d4768e73ec18_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b75ff7e24434e35dfc56d4768e73ec18_7 == cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7); - cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = NULL; - } - - assertFrameObject(frame_b75ff7e24434e35dfc56d4768e73ec18_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_21; - skip_nested_handling_6:; - { - PyObject *tmp_assign_source_60; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_13 = tmp_class_creation_6__metaclass; - tmp_tuple_element_16 = mod_consts[187]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_16); - tmp_tuple_element_16 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 260; - tmp_assign_source_60 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - assert(outline_5_var___class__ == NULL); - outline_5_var___class__ = tmp_assign_source_60; - } - CHECK_OBJECT(outline_5_var___class__); - tmp_assign_source_59 = outline_5_var___class__; - Py_INCREF(tmp_assign_source_59); - goto try_return_handler_21; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - Py_DECREF(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260); - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - goto try_return_handler_20; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260); - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto try_except_handler_20; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_20:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 260; - goto try_except_handler_19; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187], tmp_assign_source_59); - } - goto try_end_9; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_61; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_assign_source_61 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_61, 0, tmp_tuple_element_17); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_62 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - tmp_assign_source_63 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_29; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_30; - int tmp_truth_name_3; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_29 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[145]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_condition_result_30 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_27 = tmp_class_creation_7__bases; - tmp_subscript_name_3 = mod_consts[20]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_3, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_64 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_32; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_28 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[147]); - tmp_condition_result_32 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_65; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_29 = tmp_class_creation_7__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[147]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_tuple_element_18 = mod_consts[195]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_18 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 333; - tmp_assign_source_65 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_65; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_30 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[149]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_condition_result_33 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[151]; - tmp_getattr_default_7 = mod_consts[152]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_10 = tmp_class_creation_7__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[151]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_22; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 333; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_22; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_66; - tmp_assign_source_66 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_66; - } - branch_end_22:; - { - PyObject *tmp_assign_source_67; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - tmp_dictset_value = mod_consts[196]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - tmp_dictset_value = mod_consts[195]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - if (isFrameUnusable(cache_frame_e88cbe919e4943422eaca3092583f68c_8)) { - Py_XDECREF(cache_frame_e88cbe919e4943422eaca3092583f68c_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e88cbe919e4943422eaca3092583f68c_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e88cbe919e4943422eaca3092583f68c_8 = MAKE_FUNCTION_FRAME(codeobj_e88cbe919e4943422eaca3092583f68c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e88cbe919e4943422eaca3092583f68c_8->m_type_description == NULL); - frame_e88cbe919e4943422eaca3092583f68c_8 = cache_frame_e88cbe919e4943422eaca3092583f68c_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e88cbe919e4943422eaca3092583f68c_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e88cbe919e4943422eaca3092583f68c_8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_8; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_defaults_8 = mod_consts[197]; - Py_INCREF(tmp_defaults_8); - - tmp_closure_3[0] = outline_6_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(tmp_defaults_8, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - { - PyObject *tmp_defaults_9; - tmp_defaults_9 = mod_consts[192]; - Py_INCREF(tmp_defaults_9); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(tmp_defaults_9); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 346; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e88cbe919e4943422eaca3092583f68c_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e88cbe919e4943422eaca3092583f68c_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e88cbe919e4943422eaca3092583f68c_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e88cbe919e4943422eaca3092583f68c_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e88cbe919e4943422eaca3092583f68c_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e88cbe919e4943422eaca3092583f68c_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e88cbe919e4943422eaca3092583f68c_8 == cache_frame_e88cbe919e4943422eaca3092583f68c_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e88cbe919e4943422eaca3092583f68c_8); - cache_frame_e88cbe919e4943422eaca3092583f68c_8 = NULL; - } - - assertFrameObject(frame_e88cbe919e4943422eaca3092583f68c_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_24; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_3 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_7__bases_orig; - tmp_condition_result_34 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_34 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_34 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - branch_no_24:; - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_15 = tmp_class_creation_7__metaclass; - tmp_tuple_element_20 = mod_consts[195]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_20 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 333; - tmp_assign_source_68 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - { - PyObject *old = Nuitka_Cell_GET(outline_6_var___class__); - PyCell_SET(outline_6_var___class__, tmp_assign_source_68); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_6_var___class__)); - tmp_assign_source_67 = Nuitka_Cell_GET(outline_6_var___class__); - Py_INCREF(tmp_assign_source_67); - goto try_return_handler_24; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - Py_DECREF(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333); - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - goto try_return_handler_23; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333); - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto try_except_handler_23; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_23:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 333; - goto try_except_handler_22; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[195], tmp_assign_source_67); - } - goto try_end_10; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_69; - PyObject *tmp_tuple_element_21; - tmp_tuple_element_21 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_21 == NULL)) { - tmp_tuple_element_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_assign_source_69 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_69, 0, tmp_tuple_element_21); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_70 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_70; - } - { - PyObject *tmp_assign_source_71; - tmp_assign_source_71 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_35; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_36; - int tmp_truth_name_4; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_32; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_35 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[145]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_condition_result_36 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_32 = tmp_class_creation_8__bases; - tmp_subscript_name_4 = mod_consts[20]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_32, tmp_subscript_name_4, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_72 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_72; - } - { - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_38; - PyObject *tmp_expression_name_33; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_33 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_33, mod_consts[147]); - tmp_condition_result_38 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_73; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_34 = tmp_class_creation_8__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[147]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_tuple_element_22 = mod_consts[200]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_22 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 357; - tmp_assign_source_73 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_73; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_35; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_35 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_35, mod_consts[149]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_condition_result_39 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_23; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[151]; - tmp_getattr_default_8 = mod_consts[152]; - tmp_tuple_element_23 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_36; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_12 = tmp_class_creation_8__prepared; - tmp_expression_name_36 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_36 == NULL)); - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[151]); - Py_DECREF(tmp_expression_name_36); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_23); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_25; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 357; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_25; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_74; - tmp_assign_source_74 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_74; - } - branch_end_26:; - { - PyObject *tmp_assign_source_75; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - tmp_dictset_value = mod_consts[201]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - tmp_dictset_value = mod_consts[200]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - if (isFrameUnusable(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9)) { - Py_XDECREF(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = MAKE_FUNCTION_FRAME(codeobj_9dcbcaa61a62b4193359e4eafa1dff12, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9->m_type_description == NULL); - frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9dcbcaa61a62b4193359e4eafa1dff12_9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_10; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_defaults_10 = mod_consts[202]; - Py_INCREF(tmp_defaults_10); - - tmp_closure_4[0] = outline_7_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(tmp_defaults_10, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - PyObject *tmp_defaults_11; - tmp_defaults_11 = mod_consts[192]; - Py_INCREF(tmp_defaults_11); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(tmp_defaults_11); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9dcbcaa61a62b4193359e4eafa1dff12_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9dcbcaa61a62b4193359e4eafa1dff12_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9dcbcaa61a62b4193359e4eafa1dff12_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9dcbcaa61a62b4193359e4eafa1dff12_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9dcbcaa61a62b4193359e4eafa1dff12_9 == cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = NULL; - } - - assertFrameObject(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_27; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_4 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_8__bases_orig; - tmp_condition_result_40 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_40 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_40 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - branch_no_28:; - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_16; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_17 = tmp_class_creation_8__metaclass; - tmp_tuple_element_24 = mod_consts[200]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_24 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_24); - tmp_tuple_element_24 = locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_16 = tmp_class_creation_8__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 357; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_16, tmp_kwargs_name_16); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - { - PyObject *old = Nuitka_Cell_GET(outline_7_var___class__); - PyCell_SET(outline_7_var___class__, tmp_assign_source_76); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_7_var___class__)); - tmp_assign_source_75 = Nuitka_Cell_GET(outline_7_var___class__); - Py_INCREF(tmp_assign_source_75); - goto try_return_handler_27; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - Py_DECREF(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357); - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - goto try_return_handler_26; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357); - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto try_except_handler_26; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_26:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 357; - goto try_except_handler_25; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[200], tmp_assign_source_75); - } - goto try_end_11; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_77; - PyObject *tmp_tuple_element_25; - tmp_tuple_element_25 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_25 == NULL)) { - tmp_tuple_element_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_assign_source_77 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_77, 0, tmp_tuple_element_25); - assert(tmp_class_creation_9__bases_orig == NULL); - tmp_class_creation_9__bases_orig = tmp_assign_source_77; - } - { - PyObject *tmp_assign_source_78; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_9__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_78 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__bases == NULL); - tmp_class_creation_9__bases = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - tmp_assign_source_79 = PyDict_New(); - assert(tmp_class_creation_9__class_decl_dict == NULL); - tmp_class_creation_9__class_decl_dict = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - PyObject *tmp_metaclass_name_9; - nuitka_bool tmp_condition_result_41; - PyObject *tmp_key_name_25; - PyObject *tmp_dict_arg_name_25; - PyObject *tmp_dict_arg_name_26; - PyObject *tmp_key_name_26; - nuitka_bool tmp_condition_result_42; - int tmp_truth_name_5; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_9; - tmp_key_name_25 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_25 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_25, tmp_key_name_25); - assert(!(tmp_res == -1)); - tmp_condition_result_41 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_26 = tmp_class_creation_9__class_decl_dict; - tmp_key_name_26 = mod_consts[145]; - tmp_metaclass_name_9 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_26, tmp_key_name_26); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_9__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_condition_result_42 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_expression_name_37 = tmp_class_creation_9__bases; - tmp_subscript_name_5 = mod_consts[20]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_37, tmp_subscript_name_5, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_metaclass_name_9 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_9 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_9); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_bases_name_9 = tmp_class_creation_9__bases; - tmp_assign_source_80 = SELECT_METACLASS(tmp_metaclass_name_9, tmp_bases_name_9); - Py_DECREF(tmp_metaclass_name_9); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__metaclass == NULL); - tmp_class_creation_9__metaclass = tmp_assign_source_80; - } - { - nuitka_bool tmp_condition_result_43; - PyObject *tmp_key_name_27; - PyObject *tmp_dict_arg_name_27; - tmp_key_name_27 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_27 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_27, tmp_key_name_27); - assert(!(tmp_res == -1)); - tmp_condition_result_43 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_9__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_44; - PyObject *tmp_expression_name_38; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_38 = tmp_class_creation_9__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_38, mod_consts[147]); - tmp_condition_result_44 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_81; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_39; - PyObject *tmp_args_name_17; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_39 = tmp_class_creation_9__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[147]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_tuple_element_26 = mod_consts[205]; - tmp_args_name_17 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_17, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_26 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_17, 1, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_9__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 382; - tmp_assign_source_81 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_17, tmp_kwargs_name_17); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_17); - if (tmp_assign_source_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_81; - } - { - nuitka_bool tmp_condition_result_45; - PyObject *tmp_operand_name_9; - PyObject *tmp_expression_name_40; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_expression_name_40 = tmp_class_creation_9__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_40, mod_consts[149]); - tmp_operand_name_9 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_condition_result_45 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_9; - PyObject *tmp_raise_value_9; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_tuple_element_27; - PyObject *tmp_getattr_target_9; - PyObject *tmp_getattr_attr_9; - PyObject *tmp_getattr_default_9; - tmp_raise_type_9 = PyExc_TypeError; - tmp_left_name_9 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_getattr_target_9 = tmp_class_creation_9__metaclass; - tmp_getattr_attr_9 = mod_consts[151]; - tmp_getattr_default_9 = mod_consts[152]; - tmp_tuple_element_27 = BUILTIN_GETATTR(tmp_getattr_target_9, tmp_getattr_attr_9, tmp_getattr_default_9); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_right_name_9 = PyTuple_New(2); - { - PyObject *tmp_expression_name_41; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_9, 0, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_type_arg_14 = tmp_class_creation_9__prepared; - tmp_expression_name_41 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_41 == NULL)); - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[151]); - Py_DECREF(tmp_expression_name_41); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_9, 1, tmp_tuple_element_27); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_9); - goto try_except_handler_28; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_9 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_raise_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - exception_type = tmp_raise_type_9; - Py_INCREF(tmp_raise_type_9); - exception_value = tmp_raise_value_9; - exception_lineno = 382; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_28; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_82; - tmp_assign_source_82 = PyDict_New(); - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_82; - } - branch_end_30:; - { - PyObject *tmp_assign_source_83; - { - PyObject *tmp_set_locals_9; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_set_locals_9 = tmp_class_creation_9__prepared; - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = tmp_set_locals_9; - Py_INCREF(tmp_set_locals_9); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - tmp_dictset_value = mod_consts[206]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - tmp_dictset_value = mod_consts[205]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - if (isFrameUnusable(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10)) { - Py_XDECREF(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = MAKE_FUNCTION_FRAME(codeobj_5fc270cde0051c2eaf563a16fdfd133c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10->m_type_description == NULL); - frame_5fc270cde0051c2eaf563a16fdfd133c_10 = cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5fc270cde0051c2eaf563a16fdfd133c_10); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5fc270cde0051c2eaf563a16fdfd133c_10) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_12; - struct Nuitka_CellObject *tmp_closure_5[1]; - tmp_defaults_12 = mod_consts[207]; - Py_INCREF(tmp_defaults_12); - - tmp_closure_5[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(tmp_defaults_12, tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - { - PyObject *tmp_defaults_13; - tmp_defaults_13 = mod_consts[192]; - Py_INCREF(tmp_defaults_13); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(tmp_defaults_13); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5fc270cde0051c2eaf563a16fdfd133c_10); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_9; - - frame_exception_exit_10:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5fc270cde0051c2eaf563a16fdfd133c_10); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5fc270cde0051c2eaf563a16fdfd133c_10, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5fc270cde0051c2eaf563a16fdfd133c_10->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5fc270cde0051c2eaf563a16fdfd133c_10, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5fc270cde0051c2eaf563a16fdfd133c_10, - type_description_2, - outline_8_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_5fc270cde0051c2eaf563a16fdfd133c_10 == cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10); - cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = NULL; - } - - assertFrameObject(frame_5fc270cde0051c2eaf563a16fdfd133c_10); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_9; - - frame_no_exception_9:; - goto skip_nested_handling_9; - nested_frame_exit_9:; - - goto try_except_handler_30; - skip_nested_handling_9:; - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_compexpr_left_5 = tmp_class_creation_9__bases; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_9__bases_orig; - tmp_condition_result_46 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_46 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_46 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dictset_value = tmp_class_creation_9__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - branch_no_32:; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_18; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_18; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_called_name_19 = tmp_class_creation_9__metaclass; - tmp_tuple_element_28 = mod_consts[205]; - tmp_args_name_18 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_18, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_28 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_18, 1, tmp_tuple_element_28); - tmp_tuple_element_28 = locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382; - PyTuple_SET_ITEM0(tmp_args_name_18, 2, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_18 = tmp_class_creation_9__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 382; - tmp_assign_source_84 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_18, tmp_kwargs_name_18); - Py_DECREF(tmp_args_name_18); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - { - PyObject *old = Nuitka_Cell_GET(outline_8_var___class__); - PyCell_SET(outline_8_var___class__, tmp_assign_source_84); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_8_var___class__)); - tmp_assign_source_83 = Nuitka_Cell_GET(outline_8_var___class__); - Py_INCREF(tmp_assign_source_83); - goto try_return_handler_30; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_30:; - Py_DECREF(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382); - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - goto try_return_handler_29; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382); - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto try_except_handler_29; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_29:; - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - goto outline_result_9; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_29; - exception_value = exception_keeper_value_29; - exception_tb = exception_keeper_tb_29; - exception_lineno = exception_keeper_lineno_29; - - goto outline_exception_9; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_9:; - exception_lineno = 382; - goto try_except_handler_28; - outline_result_9:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[205], tmp_assign_source_83); - } - goto try_end_12; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - Py_XDECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - Py_DECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_9__prepared); - Py_DECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - { - PyObject *tmp_assign_source_85; - tmp_assign_source_85 = PyDict_New(); - assert(tmp_class_creation_10__class_decl_dict == NULL); - tmp_class_creation_10__class_decl_dict = tmp_assign_source_85; - } - // Tried code: - { - PyObject *tmp_assign_source_86; - PyObject *tmp_metaclass_name_10; - nuitka_bool tmp_condition_result_47; - PyObject *tmp_key_name_28; - PyObject *tmp_dict_arg_name_28; - PyObject *tmp_dict_arg_name_29; - PyObject *tmp_key_name_29; - PyObject *tmp_bases_name_10; - tmp_key_name_28 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_28 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_28, tmp_key_name_28); - assert(!(tmp_res == -1)); - tmp_condition_result_47 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_29 = tmp_class_creation_10__class_decl_dict; - tmp_key_name_29 = mod_consts[145]; - tmp_metaclass_name_10 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_29, tmp_key_name_29); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - goto condexpr_end_15; - condexpr_false_15:; - tmp_metaclass_name_10 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_10); - condexpr_end_15:; - tmp_bases_name_10 = mod_consts[146]; - tmp_assign_source_86 = SELECT_METACLASS(tmp_metaclass_name_10, tmp_bases_name_10); - Py_DECREF(tmp_metaclass_name_10); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - assert(tmp_class_creation_10__metaclass == NULL); - tmp_class_creation_10__metaclass = tmp_assign_source_86; - } - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_key_name_30; - PyObject *tmp_dict_arg_name_30; - tmp_key_name_30 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_30 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_30, tmp_key_name_30); - assert(!(tmp_res == -1)); - tmp_condition_result_48 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_10__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - branch_no_33:; - { - nuitka_bool tmp_condition_result_49; - PyObject *tmp_expression_name_42; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_42 = tmp_class_creation_10__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_42, mod_consts[147]); - tmp_condition_result_49 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_assign_source_87; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_name_19; - PyObject *tmp_kwargs_name_19; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_43 = tmp_class_creation_10__metaclass; - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[147]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_args_name_19 = mod_consts[210]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_19 = tmp_class_creation_10__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 404; - tmp_assign_source_87 = CALL_FUNCTION(tmp_called_name_20, tmp_args_name_19, tmp_kwargs_name_19); - Py_DECREF(tmp_called_name_20); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_87; - } - { - nuitka_bool tmp_condition_result_50; - PyObject *tmp_operand_name_10; - PyObject *tmp_expression_name_44; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_expression_name_44 = tmp_class_creation_10__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_44, mod_consts[149]); - tmp_operand_name_10 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_10); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_condition_result_50 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_50 == NUITKA_BOOL_TRUE) { - goto branch_yes_35; - } else { - goto branch_no_35; - } - } - branch_yes_35:; - { - PyObject *tmp_raise_type_10; - PyObject *tmp_raise_value_10; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_tuple_element_29; - PyObject *tmp_getattr_target_10; - PyObject *tmp_getattr_attr_10; - PyObject *tmp_getattr_default_10; - tmp_raise_type_10 = PyExc_TypeError; - tmp_left_name_10 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_getattr_target_10 = tmp_class_creation_10__metaclass; - tmp_getattr_attr_10 = mod_consts[151]; - tmp_getattr_default_10 = mod_consts[152]; - tmp_tuple_element_29 = BUILTIN_GETATTR(tmp_getattr_target_10, tmp_getattr_attr_10, tmp_getattr_default_10); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_right_name_10 = PyTuple_New(2); - { - PyObject *tmp_expression_name_45; - PyObject *tmp_type_arg_15; - PyTuple_SET_ITEM(tmp_right_name_10, 0, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_type_arg_15 = tmp_class_creation_10__prepared; - tmp_expression_name_45 = BUILTIN_TYPE1(tmp_type_arg_15); - assert(!(tmp_expression_name_45 == NULL)); - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[151]); - Py_DECREF(tmp_expression_name_45); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_right_name_10, 1, tmp_tuple_element_29); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_right_name_10); - goto try_except_handler_31; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_raise_value_10 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_raise_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - exception_type = tmp_raise_type_10; - Py_INCREF(tmp_raise_type_10); - exception_value = tmp_raise_value_10; - exception_lineno = 404; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_31; - } - branch_no_35:; - goto branch_end_34; - branch_no_34:; - { - PyObject *tmp_assign_source_88; - tmp_assign_source_88 = PyDict_New(); - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_88; - } - branch_end_34:; - { - PyObject *tmp_assign_source_89; - { - PyObject *tmp_set_locals_10; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_set_locals_10 = tmp_class_creation_10__prepared; - locals_models$unet3d$metrics$$$class__10_PSNR_404 = tmp_set_locals_10; - Py_INCREF(tmp_set_locals_10); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - tmp_dictset_value = mod_consts[211]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - tmp_dictset_value = mod_consts[212]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - if (isFrameUnusable(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11)) { - Py_XDECREF(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11); - -#if _DEBUG_REFCOUNTS - if (cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = MAKE_FUNCTION_FRAME(codeobj_72a00a732f540edac0bacfbeb9ebea2b, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11->m_type_description == NULL); - frame_72a00a732f540edac0bacfbeb9ebea2b_11 = cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11; - - // Push the new frame as the currently active one. - pushFrameStack(frame_72a00a732f540edac0bacfbeb9ebea2b_11); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_72a00a732f540edac0bacfbeb9ebea2b_11) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 409; - type_description_2 = "o"; - goto frame_exception_exit_11; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 412; - type_description_2 = "o"; - goto frame_exception_exit_11; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72a00a732f540edac0bacfbeb9ebea2b_11); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_10; - - frame_exception_exit_11:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72a00a732f540edac0bacfbeb9ebea2b_11); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_72a00a732f540edac0bacfbeb9ebea2b_11, exception_lineno); - } else if (exception_tb->tb_frame != &frame_72a00a732f540edac0bacfbeb9ebea2b_11->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_72a00a732f540edac0bacfbeb9ebea2b_11, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_72a00a732f540edac0bacfbeb9ebea2b_11, - type_description_2, - outline_9_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_72a00a732f540edac0bacfbeb9ebea2b_11 == cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11); - cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = NULL; - } - - assertFrameObject(frame_72a00a732f540edac0bacfbeb9ebea2b_11); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_10; - - frame_no_exception_10:; - goto skip_nested_handling_10; - nested_frame_exit_10:; - - goto try_except_handler_33; - skip_nested_handling_10:; - { - PyObject *tmp_assign_source_90; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_20; - PyObject *tmp_tuple_element_30; - PyObject *tmp_kwargs_name_20; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_called_name_21 = tmp_class_creation_10__metaclass; - tmp_tuple_element_30 = mod_consts[212]; - tmp_args_name_20 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_20, 0, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_20, 1, tmp_tuple_element_30); - tmp_tuple_element_30 = locals_models$unet3d$metrics$$$class__10_PSNR_404; - PyTuple_SET_ITEM0(tmp_args_name_20, 2, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_20 = tmp_class_creation_10__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 404; - tmp_assign_source_90 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_20, tmp_kwargs_name_20); - Py_DECREF(tmp_args_name_20); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - assert(outline_9_var___class__ == NULL); - outline_9_var___class__ = tmp_assign_source_90; - } - CHECK_OBJECT(outline_9_var___class__); - tmp_assign_source_89 = outline_9_var___class__; - Py_INCREF(tmp_assign_source_89); - goto try_return_handler_33; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_33:; - Py_DECREF(locals_models$unet3d$metrics$$$class__10_PSNR_404); - locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - goto try_return_handler_32; - // Exception handler code: - try_except_handler_33:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__10_PSNR_404); - locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto try_except_handler_32; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_32:; - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - goto outline_result_10; - // Exception handler code: - try_except_handler_32:; - exception_keeper_type_32 = exception_type; - exception_keeper_value_32 = exception_value; - exception_keeper_tb_32 = exception_tb; - exception_keeper_lineno_32 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_32; - exception_value = exception_keeper_value_32; - exception_tb = exception_keeper_tb_32; - exception_lineno = exception_keeper_lineno_32; - - goto outline_exception_10; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_10:; - exception_lineno = 404; - goto try_except_handler_31; - outline_result_10:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[212], tmp_assign_source_89); - } - goto try_end_13; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_33 = exception_type; - exception_keeper_value_33 = exception_value; - exception_keeper_tb_33 = exception_tb; - exception_keeper_lineno_33 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - Py_XDECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_33; - exception_value = exception_keeper_value_33; - exception_tb = exception_keeper_tb_33; - exception_lineno = exception_keeper_lineno_33; - - goto frame_exception_exit_1; - // End of try: - try_end_13:; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_10__prepared); - Py_DECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - { - PyObject *tmp_assign_source_91; - tmp_assign_source_91 = PyDict_New(); - assert(tmp_class_creation_11__class_decl_dict == NULL); - tmp_class_creation_11__class_decl_dict = tmp_assign_source_91; - } - // Tried code: - { - PyObject *tmp_assign_source_92; - PyObject *tmp_metaclass_name_11; - nuitka_bool tmp_condition_result_51; - PyObject *tmp_key_name_31; - PyObject *tmp_dict_arg_name_31; - PyObject *tmp_dict_arg_name_32; - PyObject *tmp_key_name_32; - PyObject *tmp_bases_name_11; - tmp_key_name_31 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_31 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_31, tmp_key_name_31); - assert(!(tmp_res == -1)); - tmp_condition_result_51 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_51 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_32 = tmp_class_creation_11__class_decl_dict; - tmp_key_name_32 = mod_consts[145]; - tmp_metaclass_name_11 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_32, tmp_key_name_32); - if (tmp_metaclass_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - goto condexpr_end_16; - condexpr_false_16:; - tmp_metaclass_name_11 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_11); - condexpr_end_16:; - tmp_bases_name_11 = mod_consts[146]; - tmp_assign_source_92 = SELECT_METACLASS(tmp_metaclass_name_11, tmp_bases_name_11); - Py_DECREF(tmp_metaclass_name_11); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - assert(tmp_class_creation_11__metaclass == NULL); - tmp_class_creation_11__metaclass = tmp_assign_source_92; - } - { - nuitka_bool tmp_condition_result_52; - PyObject *tmp_key_name_33; - PyObject *tmp_dict_arg_name_33; - tmp_key_name_33 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_33 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_33, tmp_key_name_33); - assert(!(tmp_res == -1)); - tmp_condition_result_52 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_52 == NUITKA_BOOL_TRUE) { - goto branch_yes_36; - } else { - goto branch_no_36; - } - } - branch_yes_36:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_11__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - branch_no_36:; - { - nuitka_bool tmp_condition_result_53; - PyObject *tmp_expression_name_46; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_46 = tmp_class_creation_11__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_46, mod_consts[147]); - tmp_condition_result_53 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_53 == NUITKA_BOOL_TRUE) { - goto branch_yes_37; - } else { - goto branch_no_37; - } - } - branch_yes_37:; - { - PyObject *tmp_assign_source_93; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_47; - PyObject *tmp_args_name_21; - PyObject *tmp_kwargs_name_21; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_47 = tmp_class_creation_11__metaclass; - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[147]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_args_name_21 = mod_consts[215]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_21 = tmp_class_creation_11__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 417; - tmp_assign_source_93 = CALL_FUNCTION(tmp_called_name_22, tmp_args_name_21, tmp_kwargs_name_21); - Py_DECREF(tmp_called_name_22); - if (tmp_assign_source_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_93; - } - { - nuitka_bool tmp_condition_result_54; - PyObject *tmp_operand_name_11; - PyObject *tmp_expression_name_48; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_expression_name_48 = tmp_class_creation_11__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_48, mod_consts[149]); - tmp_operand_name_11 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_11); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_condition_result_54 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_54 == NUITKA_BOOL_TRUE) { - goto branch_yes_38; - } else { - goto branch_no_38; - } - } - branch_yes_38:; - { - PyObject *tmp_raise_type_11; - PyObject *tmp_raise_value_11; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_tuple_element_31; - PyObject *tmp_getattr_target_11; - PyObject *tmp_getattr_attr_11; - PyObject *tmp_getattr_default_11; - tmp_raise_type_11 = PyExc_TypeError; - tmp_left_name_11 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_getattr_target_11 = tmp_class_creation_11__metaclass; - tmp_getattr_attr_11 = mod_consts[151]; - tmp_getattr_default_11 = mod_consts[152]; - tmp_tuple_element_31 = BUILTIN_GETATTR(tmp_getattr_target_11, tmp_getattr_attr_11, tmp_getattr_default_11); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_right_name_11 = PyTuple_New(2); - { - PyObject *tmp_expression_name_49; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_11, 0, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_type_arg_16 = tmp_class_creation_11__prepared; - tmp_expression_name_49 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_49 == NULL)); - tmp_tuple_element_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[151]); - Py_DECREF(tmp_expression_name_49); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto tuple_build_exception_11; - } - PyTuple_SET_ITEM(tmp_right_name_11, 1, tmp_tuple_element_31); - } - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_right_name_11); - goto try_except_handler_34; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - tmp_raise_value_11 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_raise_value_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - exception_type = tmp_raise_type_11; - Py_INCREF(tmp_raise_type_11); - exception_value = tmp_raise_value_11; - exception_lineno = 417; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_34; - } - branch_no_38:; - goto branch_end_37; - branch_no_37:; - { - PyObject *tmp_assign_source_94; - tmp_assign_source_94 = PyDict_New(); - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_94; - } - branch_end_37:; - { - PyObject *tmp_assign_source_95; - { - PyObject *tmp_set_locals_11; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_set_locals_11 = tmp_class_creation_11__prepared; - locals_models$unet3d$metrics$$$class__11_MSE_417 = tmp_set_locals_11; - Py_INCREF(tmp_set_locals_11); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - tmp_dictset_value = mod_consts[216]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - tmp_dictset_value = mod_consts[217]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - if (isFrameUnusable(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12)) { - Py_XDECREF(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = MAKE_FUNCTION_FRAME(codeobj_a46b4a5c8a31bf4bad1959b4462967d8, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12->m_type_description == NULL); - frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a46b4a5c8a31bf4bad1959b4462967d8_12) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 422; - type_description_2 = "o"; - goto frame_exception_exit_12; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 425; - type_description_2 = "o"; - goto frame_exception_exit_12; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_11; - - frame_exception_exit_12:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a46b4a5c8a31bf4bad1959b4462967d8_12, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a46b4a5c8a31bf4bad1959b4462967d8_12->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a46b4a5c8a31bf4bad1959b4462967d8_12, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a46b4a5c8a31bf4bad1959b4462967d8_12, - type_description_2, - outline_10_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_a46b4a5c8a31bf4bad1959b4462967d8_12 == cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = NULL; - } - - assertFrameObject(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_11; - - frame_no_exception_11:; - goto skip_nested_handling_11; - nested_frame_exit_11:; - - goto try_except_handler_36; - skip_nested_handling_11:; - { - PyObject *tmp_assign_source_96; - PyObject *tmp_called_name_23; - PyObject *tmp_args_name_22; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_22; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_called_name_23 = tmp_class_creation_11__metaclass; - tmp_tuple_element_32 = mod_consts[217]; - tmp_args_name_22 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_22, 0, tmp_tuple_element_32); - tmp_tuple_element_32 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_22, 1, tmp_tuple_element_32); - tmp_tuple_element_32 = locals_models$unet3d$metrics$$$class__11_MSE_417; - PyTuple_SET_ITEM0(tmp_args_name_22, 2, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_22 = tmp_class_creation_11__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 417; - tmp_assign_source_96 = CALL_FUNCTION(tmp_called_name_23, tmp_args_name_22, tmp_kwargs_name_22); - Py_DECREF(tmp_args_name_22); - if (tmp_assign_source_96 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - assert(outline_10_var___class__ == NULL); - outline_10_var___class__ = tmp_assign_source_96; - } - CHECK_OBJECT(outline_10_var___class__); - tmp_assign_source_95 = outline_10_var___class__; - Py_INCREF(tmp_assign_source_95); - goto try_return_handler_36; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_36:; - Py_DECREF(locals_models$unet3d$metrics$$$class__11_MSE_417); - locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - goto try_return_handler_35; - // Exception handler code: - try_except_handler_36:; - exception_keeper_type_34 = exception_type; - exception_keeper_value_34 = exception_value; - exception_keeper_tb_34 = exception_tb; - exception_keeper_lineno_34 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__11_MSE_417); - locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - // Re-raise. - exception_type = exception_keeper_type_34; - exception_value = exception_keeper_value_34; - exception_tb = exception_keeper_tb_34; - exception_lineno = exception_keeper_lineno_34; - - goto try_except_handler_35; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_35:; - CHECK_OBJECT(outline_10_var___class__); - Py_DECREF(outline_10_var___class__); - outline_10_var___class__ = NULL; - goto outline_result_11; - // Exception handler code: - try_except_handler_35:; - exception_keeper_type_35 = exception_type; - exception_keeper_value_35 = exception_value; - exception_keeper_tb_35 = exception_tb; - exception_keeper_lineno_35 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_35; - exception_value = exception_keeper_value_35; - exception_tb = exception_keeper_tb_35; - exception_lineno = exception_keeper_lineno_35; - - goto outline_exception_11; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_11:; - exception_lineno = 417; - goto try_except_handler_34; - outline_result_11:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[217], tmp_assign_source_95); - } - goto try_end_14; - // Exception handler code: - try_except_handler_34:; - exception_keeper_type_36 = exception_type; - exception_keeper_value_36 = exception_value; - exception_keeper_tb_36 = exception_tb; - exception_keeper_lineno_36 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - Py_XDECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_36; - exception_value = exception_keeper_value_36; - exception_tb = exception_keeper_tb_36; - exception_lineno = exception_keeper_lineno_36; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); -#endif - popFrameStack(); - - assertFrameObject(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); - - goto frame_no_exception_12; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0cf8f15b912f59c3df11f1bc1cb3fea0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0cf8f15b912f59c3df11f1bc1cb3fea0, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_12:; - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_11__prepared); - Py_DECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - { - PyObject *tmp_assign_source_97; - - - tmp_assign_source_97 = MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[220], tmp_assign_source_97); - } - - return module_models$unet3d$metrics; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} -