/* Generated code for Python module 'models.blip2' * created by Nuitka version 0.6.16 * * This code is in part copyright 2021 Kay Hayen. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "nuitka/prelude.h" #include "nuitka/unfreezing.h" #include "__helpers.h" /* The "module_models$blip2" is a Python object pointer of module type. * * Note: For full compatibility with CPython, every module variable access * needs to go through it except for cases where the module cannot possibly * have changed in the mean time. */ PyObject *module_models$blip2; PyDictObject *moduledict_models$blip2; /* The declarations of module constants used, if any. */ static PyObject *mod_consts[215]; static PyObject *module_filename_obj = NULL; /* Indicator if this modules private constants were created yet. */ static bool constants_created = false; /* Function to create module private constants. */ static void createModuleConstants(void) { if (constants_created == false) { loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.blip2")); constants_created = true; } } /* For multiprocessing, we want to be able to initialize the __main__ constants. */ #if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 void createMainModuleConstants(void) { createModuleConstants(); } #endif /* Function to verify module private constants for non-corruption. */ #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_models$blip2(void) { // The module may not have been used at all, then ignore this. if (constants_created == false) return; checkConstantsBlob(&mod_consts[0], "models.blip2"); } #endif // The module code objects. static PyCodeObject *codeobj_058485e121bd2827510070e07e93711c; static PyCodeObject *codeobj_ea027d7d60a14da7f0ce573c2280d557; static PyCodeObject *codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b; static PyCodeObject *codeobj_34e4752d34c2c5cc3b4ee22e380d2d44; static PyCodeObject *codeobj_542a5e3c307e234b4713edd7809bc334; static PyCodeObject *codeobj_4a4587fc6b26979d42283eb077ac36b8; static PyCodeObject *codeobj_0eee27e304dfa5248f011bdb07b1d838; static PyCodeObject *codeobj_f2b34b9b84f486851b110f17c4ee05e2; static PyCodeObject *codeobj_8fcb6395cf0c0f62db018c730b7394a7; static PyCodeObject *codeobj_e23fcdacbf76938ecc6dc87b76499068; static PyCodeObject *codeobj_939e8d935a7d068a806eee2effd6eef8; static void createModuleCodeObjects(void) { module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[204]); CHECK_OBJECT(module_filename_obj); codeobj_058485e121bd2827510070e07e93711c = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[205], NULL, NULL, 0, 0, 0); codeobj_ea027d7d60a14da7f0ce573c2280d557 = MAKE_CODEOBJECT(module_filename_obj, 28, CO_NOFREE, mod_consts[177], mod_consts[206], NULL, 0, 0, 0); codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b = MAKE_CODEOBJECT(module_filename_obj, 99, CO_NOFREE, mod_consts[38], mod_consts[206], NULL, 0, 0, 0); codeobj_34e4752d34c2c5cc3b4ee22e380d2d44 = MAKE_CODEOBJECT(module_filename_obj, 108, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[203], mod_consts[207], NULL, 2, 0, 0); codeobj_542a5e3c307e234b4713edd7809bc334 = MAKE_CODEOBJECT(module_filename_obj, 93, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[199], mod_consts[208], NULL, 2, 0, 0); codeobj_4a4587fc6b26979d42283eb077ac36b8 = MAKE_CODEOBJECT(module_filename_obj, 102, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[60], mod_consts[209], mod_consts[206], 2, 0, 0); codeobj_0eee27e304dfa5248f011bdb07b1d838 = MAKE_CODEOBJECT(module_filename_obj, 46, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[191], mod_consts[210], NULL, 4, 0, 0); codeobj_f2b34b9b84f486851b110f17c4ee05e2 = MAKE_CODEOBJECT(module_filename_obj, 30, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[185], mod_consts[211], NULL, 1, 0, 0); codeobj_8fcb6395cf0c0f62db018c730b7394a7 = MAKE_CODEOBJECT(module_filename_obj, 61, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[193], mod_consts[212], NULL, 6, 0, 0); codeobj_e23fcdacbf76938ecc6dc87b76499068 = MAKE_CODEOBJECT(module_filename_obj, 72, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[195], mod_consts[213], NULL, 2, 0, 0); codeobj_939e8d935a7d068a806eee2effd6eef8 = MAKE_CODEOBJECT(module_filename_obj, 35, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[188], mod_consts[214], NULL, 2, 0, 0); } // The module function declarations. NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); static PyObject *MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); static PyObject *MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(PyObject *defaults); static PyObject *MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(PyObject *defaults); static PyObject *MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); static PyObject *MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained(); static PyObject *MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(PyObject *defaults); static PyObject *MAKE_FUNCTION_models$blip2$$$function__7_forward(PyObject *annotations, struct Nuitka_CellObject **closure); static PyObject *MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix(); // The module function definitions. static PyObject *impl_models$blip2$$$function__1_init_tokenizer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_cls = python_pars[0]; PyObject *var_tokenizer = NULL; struct Nuitka_FrameObject *frame_f2b34b9b84f486851b110f17c4ee05e2; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_f2b34b9b84f486851b110f17c4ee05e2)) { Py_XDECREF(cache_frame_f2b34b9b84f486851b110f17c4ee05e2); #if _DEBUG_REFCOUNTS if (cache_frame_f2b34b9b84f486851b110f17c4ee05e2 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = MAKE_FUNCTION_FRAME(codeobj_f2b34b9b84f486851b110f17c4ee05e2, module_models$blip2, sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_f2b34b9b84f486851b110f17c4ee05e2->m_type_description == NULL); frame_f2b34b9b84f486851b110f17c4ee05e2 = cache_frame_f2b34b9b84f486851b110f17c4ee05e2; // Push the new frame as the currently active one. pushFrameStack(frame_f2b34b9b84f486851b110f17c4ee05e2); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_f2b34b9b84f486851b110f17c4ee05e2) == 2); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_instance_1; tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[0]); if (unlikely(tmp_called_instance_1 == NULL)) { tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); } if (tmp_called_instance_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 31; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame.f_lineno = 31; tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, mod_consts[1], &PyTuple_GET_ITEM(mod_consts[2], 0) ); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 31; type_description_1 = "oo"; goto frame_exception_exit_1; } assert(var_tokenizer == NULL); var_tokenizer = tmp_assign_source_1; } { PyObject *tmp_called_instance_2; PyObject *tmp_call_result_1; PyObject *tmp_call_arg_element_1; CHECK_OBJECT(var_tokenizer); tmp_called_instance_2 = var_tokenizer; tmp_call_arg_element_1 = PyDict_Copy(mod_consts[4]); frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame.f_lineno = 32; tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[3], tmp_call_arg_element_1); Py_DECREF(tmp_call_arg_element_1); if (tmp_call_result_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 32; type_description_1 = "oo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_1); } if (var_tokenizer == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 33; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_return_value = var_tokenizer; Py_INCREF(tmp_return_value); goto frame_return_exit_1; #if 0 RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_f2b34b9b84f486851b110f17c4ee05e2, exception_lineno); } else if (exception_tb->tb_frame != &frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_f2b34b9b84f486851b110f17c4ee05e2, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_f2b34b9b84f486851b110f17c4ee05e2, type_description_1, par_cls, var_tokenizer ); // Release cached frame if used for exception. if (frame_f2b34b9b84f486851b110f17c4ee05e2 == cache_frame_f2b34b9b84f486851b110f17c4ee05e2) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_f2b34b9b84f486851b110f17c4ee05e2); cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = NULL; } assertFrameObject(frame_f2b34b9b84f486851b110f17c4ee05e2); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; Py_XDECREF(var_tokenizer); var_tokenizer = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; Py_XDECREF(var_tokenizer); var_tokenizer = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__2_maybe_autocast(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[0]; PyObject *par_dtype = python_pars[1]; PyObject *var_enable_autocast = NULL; struct Nuitka_FrameObject *frame_939e8d935a7d068a806eee2effd6eef8; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; int tmp_res; static struct Nuitka_FrameObject *cache_frame_939e8d935a7d068a806eee2effd6eef8 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_939e8d935a7d068a806eee2effd6eef8)) { Py_XDECREF(cache_frame_939e8d935a7d068a806eee2effd6eef8); #if _DEBUG_REFCOUNTS if (cache_frame_939e8d935a7d068a806eee2effd6eef8 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_939e8d935a7d068a806eee2effd6eef8 = MAKE_FUNCTION_FRAME(codeobj_939e8d935a7d068a806eee2effd6eef8, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_939e8d935a7d068a806eee2effd6eef8->m_type_description == NULL); frame_939e8d935a7d068a806eee2effd6eef8 = cache_frame_939e8d935a7d068a806eee2effd6eef8; // Push the new frame as the currently active one. pushFrameStack(frame_939e8d935a7d068a806eee2effd6eef8); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_939e8d935a7d068a806eee2effd6eef8) == 2); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_expression_name_1; PyObject *tmp_called_instance_1; CHECK_OBJECT(par_self); tmp_expression_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[6]); if (tmp_compexpr_left_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 38; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_called_instance_1 == NULL)) { tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_called_instance_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_compexpr_left_1); exception_lineno = 38; type_description_1 = "ooo"; goto frame_exception_exit_1; } frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 38; tmp_compexpr_right_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, mod_consts[6], &PyTuple_GET_ITEM(mod_consts[8], 0) ); if (tmp_compexpr_right_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_compexpr_left_1); exception_lineno = 38; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_assign_source_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); Py_DECREF(tmp_compexpr_left_1); Py_DECREF(tmp_compexpr_right_1); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 38; type_description_1 = "ooo"; goto frame_exception_exit_1; } assert(var_enable_autocast == NULL); var_enable_autocast = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_1; int tmp_truth_name_1; CHECK_OBJECT(var_enable_autocast); tmp_truth_name_1 = CHECK_IF_TRUE(var_enable_autocast); if (tmp_truth_name_1 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 40; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { goto branch_yes_1; } else { goto branch_no_1; } } branch_yes_1:; { PyObject *tmp_called_name_1; PyObject *tmp_expression_name_2; PyObject *tmp_expression_name_3; PyObject *tmp_expression_name_4; PyObject *tmp_kwargs_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_4 == NULL)) { tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 41; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[9]); if (tmp_expression_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 41; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[10]); Py_DECREF(tmp_expression_name_3); if (tmp_expression_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 41; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); Py_DECREF(tmp_expression_name_2); if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 41; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_dict_key_1 = mod_consts[12]; CHECK_OBJECT(par_dtype); tmp_dict_value_1 = par_dtype; tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); assert(!(tmp_res != 0)); frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 41; tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); Py_DECREF(tmp_called_name_1); Py_DECREF(tmp_kwargs_name_1); if (tmp_return_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 41; type_description_1 = "ooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } goto branch_end_1; branch_no_1:; { PyObject *tmp_called_instance_2; tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[13]); if (unlikely(tmp_called_instance_2 == NULL)) { tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); } if (tmp_called_instance_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 43; type_description_1 = "ooo"; goto frame_exception_exit_1; } frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 43; tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[14]); if (tmp_return_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 43; type_description_1 = "ooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_end_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_939e8d935a7d068a806eee2effd6eef8, exception_lineno); } else if (exception_tb->tb_frame != &frame_939e8d935a7d068a806eee2effd6eef8->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_939e8d935a7d068a806eee2effd6eef8, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_939e8d935a7d068a806eee2effd6eef8, type_description_1, par_self, par_dtype, var_enable_autocast ); // Release cached frame if used for exception. if (frame_939e8d935a7d068a806eee2effd6eef8 == cache_frame_939e8d935a7d068a806eee2effd6eef8) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_939e8d935a7d068a806eee2effd6eef8); cache_frame_939e8d935a7d068a806eee2effd6eef8 = NULL; } assertFrameObject(frame_939e8d935a7d068a806eee2effd6eef8); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; Py_XDECREF(par_self); par_self = NULL; Py_XDECREF(par_dtype); par_dtype = NULL; CHECK_OBJECT(var_enable_autocast); Py_DECREF(var_enable_autocast); var_enable_autocast = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(par_self); par_self = NULL; Py_XDECREF(par_dtype); par_dtype = NULL; Py_XDECREF(var_enable_autocast); var_enable_autocast = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__3_init_Qformer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_cls = python_pars[0]; PyObject *par_num_query_token = python_pars[1]; PyObject *par_vision_width = python_pars[2]; PyObject *par_cross_attention_freq = python_pars[3]; PyObject *var_encoder_config = NULL; PyObject *var_Qformer = NULL; PyObject *var_query_tokens = NULL; struct Nuitka_FrameObject *frame_0eee27e304dfa5248f011bdb07b1d838; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; int tmp_res; NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_0eee27e304dfa5248f011bdb07b1d838 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_0eee27e304dfa5248f011bdb07b1d838)) { Py_XDECREF(cache_frame_0eee27e304dfa5248f011bdb07b1d838); #if _DEBUG_REFCOUNTS if (cache_frame_0eee27e304dfa5248f011bdb07b1d838 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_0eee27e304dfa5248f011bdb07b1d838 = MAKE_FUNCTION_FRAME(codeobj_0eee27e304dfa5248f011bdb07b1d838, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_0eee27e304dfa5248f011bdb07b1d838->m_type_description == NULL); frame_0eee27e304dfa5248f011bdb07b1d838 = cache_frame_0eee27e304dfa5248f011bdb07b1d838; // Push the new frame as the currently active one. pushFrameStack(frame_0eee27e304dfa5248f011bdb07b1d838); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_0eee27e304dfa5248f011bdb07b1d838) == 2); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_instance_1; tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[15]); if (unlikely(tmp_called_instance_1 == NULL)) { tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); } if (tmp_called_instance_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 47; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 47; tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, mod_consts[1], &PyTuple_GET_ITEM(mod_consts[2], 0) ); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 47; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert(var_encoder_config == NULL); var_encoder_config = tmp_assign_source_1; } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; CHECK_OBJECT(par_vision_width); tmp_assattr_name_1 = par_vision_width; CHECK_OBJECT(var_encoder_config); tmp_assattr_target_1 = var_encoder_config; tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[16], tmp_assattr_name_1); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 48; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; tmp_assattr_name_2 = Py_True; CHECK_OBJECT(var_encoder_config); tmp_assattr_target_2 = var_encoder_config; tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[17], tmp_assattr_name_2); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 50; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_3; PyObject *tmp_assattr_target_3; CHECK_OBJECT(par_cross_attention_freq); tmp_assattr_name_3 = par_cross_attention_freq; CHECK_OBJECT(var_encoder_config); tmp_assattr_target_3 = var_encoder_config; tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[18], tmp_assattr_name_3); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 51; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_4; PyObject *tmp_assattr_target_4; CHECK_OBJECT(par_num_query_token); tmp_assattr_name_4 = par_num_query_token; CHECK_OBJECT(var_encoder_config); tmp_assattr_target_4 = var_encoder_config; tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[19], tmp_assattr_name_4); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 52; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_1; PyObject *tmp_kwargs_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[20]); if (unlikely(tmp_called_name_1 == NULL)) { tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); } if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 53; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_dict_key_1 = mod_consts[21]; CHECK_OBJECT(var_encoder_config); tmp_dict_value_1 = var_encoder_config; tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); assert(!(tmp_res != 0)); frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 53; tmp_assign_source_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); Py_DECREF(tmp_kwargs_name_1); if (tmp_assign_source_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 53; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert(var_Qformer == NULL); var_Qformer = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; PyObject *tmp_called_name_2; PyObject *tmp_expression_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_3; PyObject *tmp_expression_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; PyObject *tmp_expression_name_3; tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22]); if (unlikely(tmp_expression_name_1 == NULL)) { tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); } if (tmp_expression_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 54; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[23]); if (tmp_called_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 54; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_2 == NULL)) { tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_2); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[24]); if (tmp_called_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_2); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = mod_consts[25]; CHECK_OBJECT(par_num_query_token); tmp_args_element_name_3 = par_num_query_token; CHECK_OBJECT(var_encoder_config); tmp_expression_name_3 = var_encoder_config; tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[26]); if (tmp_args_element_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_2); Py_DECREF(tmp_called_name_3); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 55; { PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_3, call_args); } Py_DECREF(tmp_called_name_3); Py_DECREF(tmp_args_element_name_4); if (tmp_args_element_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_2); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 54; tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); Py_DECREF(tmp_called_name_2); Py_DECREF(tmp_args_element_name_1); if (tmp_assign_source_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 54; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert(var_query_tokens == NULL); var_query_tokens = tmp_assign_source_3; } { PyObject *tmp_called_name_4; PyObject *tmp_expression_name_4; PyObject *tmp_expression_name_5; PyObject *tmp_call_result_1; PyObject *tmp_kwargs_name_2; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; CHECK_OBJECT(var_query_tokens); tmp_expression_name_5 = var_query_tokens; tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[27]); if (tmp_expression_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 57; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[28]); Py_DECREF(tmp_expression_name_4); if (tmp_called_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 57; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_dict_key_2 = mod_consts[29]; tmp_dict_value_2 = mod_consts[30]; tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); { PyObject *tmp_expression_name_6; tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); assert(!(tmp_res != 0)); tmp_dict_key_2 = mod_consts[31]; if (var_encoder_config == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 57; type_description_1 = "ooooooo"; goto dict_build_exception_1; } tmp_expression_name_6 = var_encoder_config; tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[33]); if (tmp_dict_value_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 57; type_description_1 = "ooooooo"; goto dict_build_exception_1; } tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); Py_DECREF(tmp_dict_value_2); assert(!(tmp_res != 0)); } goto dict_build_noexception_1; // Exception handling pass through code for dict_build: dict_build_exception_1:; Py_DECREF(tmp_called_name_4); Py_DECREF(tmp_kwargs_name_2); goto frame_exception_exit_1; // Finished with no exception for dict_build: dict_build_noexception_1:; frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 57; tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_2); Py_DECREF(tmp_called_name_4); Py_DECREF(tmp_kwargs_name_2); if (tmp_call_result_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 57; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_1); } { PyObject *tmp_tuple_element_1; CHECK_OBJECT(var_Qformer); tmp_tuple_element_1 = var_Qformer; tmp_return_value = PyTuple_New(2); PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); if (var_query_tokens == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 58; type_description_1 = "ooooooo"; goto tuple_build_exception_1; } tmp_tuple_element_1 = var_query_tokens; PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); goto tuple_build_noexception_1; // Exception handling pass through code for tuple_build: tuple_build_exception_1:; Py_DECREF(tmp_return_value); goto frame_exception_exit_1; // Finished with no exception for tuple_build: tuple_build_noexception_1:; goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_0eee27e304dfa5248f011bdb07b1d838, exception_lineno); } else if (exception_tb->tb_frame != &frame_0eee27e304dfa5248f011bdb07b1d838->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_0eee27e304dfa5248f011bdb07b1d838, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_0eee27e304dfa5248f011bdb07b1d838, type_description_1, par_cls, par_num_query_token, par_vision_width, par_cross_attention_freq, var_encoder_config, var_Qformer, var_query_tokens ); // Release cached frame if used for exception. if (frame_0eee27e304dfa5248f011bdb07b1d838 == cache_frame_0eee27e304dfa5248f011bdb07b1d838) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_0eee27e304dfa5248f011bdb07b1d838); cache_frame_0eee27e304dfa5248f011bdb07b1d838 = NULL; } assertFrameObject(frame_0eee27e304dfa5248f011bdb07b1d838); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; Py_XDECREF(par_num_query_token); par_num_query_token = NULL; CHECK_OBJECT(par_vision_width); Py_DECREF(par_vision_width); par_vision_width = NULL; CHECK_OBJECT(par_cross_attention_freq); Py_DECREF(par_cross_attention_freq); par_cross_attention_freq = NULL; Py_XDECREF(var_encoder_config); var_encoder_config = NULL; CHECK_OBJECT(var_Qformer); Py_DECREF(var_Qformer); var_Qformer = NULL; Py_XDECREF(var_query_tokens); var_query_tokens = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; Py_XDECREF(par_num_query_token); par_num_query_token = NULL; CHECK_OBJECT(par_vision_width); Py_DECREF(par_vision_width); par_vision_width = NULL; CHECK_OBJECT(par_cross_attention_freq); Py_DECREF(par_cross_attention_freq); par_cross_attention_freq = NULL; Py_XDECREF(var_encoder_config); var_encoder_config = NULL; Py_XDECREF(var_Qformer); var_Qformer = NULL; Py_XDECREF(var_query_tokens); var_query_tokens = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__4_init_vision_encoder(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_cls = python_pars[0]; PyObject *par_model_name = python_pars[1]; PyObject *par_img_size = python_pars[2]; PyObject *par_drop_path_rate = python_pars[3]; PyObject *par_use_grad_checkpoint = python_pars[4]; PyObject *par_precision = python_pars[5]; PyObject *var_visual_encoder = NULL; PyObject *var_ln_vision = NULL; struct Nuitka_FrameObject *frame_8fcb6395cf0c0f62db018c730b7394a7; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_8fcb6395cf0c0f62db018c730b7394a7)) { Py_XDECREF(cache_frame_8fcb6395cf0c0f62db018c730b7394a7); #if _DEBUG_REFCOUNTS if (cache_frame_8fcb6395cf0c0f62db018c730b7394a7 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = MAKE_FUNCTION_FRAME(codeobj_8fcb6395cf0c0f62db018c730b7394a7, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_8fcb6395cf0c0f62db018c730b7394a7->m_type_description == NULL); frame_8fcb6395cf0c0f62db018c730b7394a7 = cache_frame_8fcb6395cf0c0f62db018c730b7394a7; // Push the new frame as the currently active one. pushFrameStack(frame_8fcb6395cf0c0f62db018c730b7394a7); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_8fcb6395cf0c0f62db018c730b7394a7) == 2); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_operand_name_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT(par_model_name); tmp_compexpr_left_1 = par_model_name; tmp_compexpr_right_1 = mod_consts[35]; tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); if (tmp_operand_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 64; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); Py_DECREF(tmp_operand_name_1); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 64; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { goto branch_yes_1; } else { goto branch_no_1; } } branch_yes_1:; { PyObject *tmp_raise_type_1; PyObject *tmp_raise_value_1; tmp_raise_type_1 = PyExc_AssertionError; tmp_raise_value_1 = mod_consts[36]; exception_type = tmp_raise_type_1; Py_INCREF(tmp_raise_type_1); exception_value = tmp_raise_value_1; Py_INCREF(tmp_raise_value_1); exception_lineno = 64; RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); type_description_1 = "oooooooo"; goto frame_exception_exit_1; } branch_no_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[37]); if (unlikely(tmp_called_name_1 == NULL)) { tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[37]); } if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 65; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(par_img_size); tmp_args_element_name_1 = par_img_size; CHECK_OBJECT(par_drop_path_rate); tmp_args_element_name_2 = par_drop_path_rate; CHECK_OBJECT(par_use_grad_checkpoint); tmp_args_element_name_3 = par_use_grad_checkpoint; CHECK_OBJECT(par_precision); tmp_args_element_name_4 = par_precision; frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame.f_lineno = 65; { PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); } if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 65; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } assert(var_visual_encoder == NULL); var_visual_encoder = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_2; PyObject *tmp_args_element_name_5; PyObject *tmp_expression_name_1; tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[38]); if (unlikely(tmp_called_name_2 == NULL)) { tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[38]); } if (tmp_called_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 69; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_visual_encoder); tmp_expression_name_1 = var_visual_encoder; tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[39]); if (tmp_args_element_name_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 69; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame.f_lineno = 69; tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_5); Py_DECREF(tmp_args_element_name_5); if (tmp_assign_source_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 69; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } assert(var_ln_vision == NULL); var_ln_vision = tmp_assign_source_2; } { PyObject *tmp_tuple_element_1; if (var_visual_encoder == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 70; type_description_1 = "oooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_1 = var_visual_encoder; tmp_return_value = PyTuple_New(2); PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); CHECK_OBJECT(var_ln_vision); tmp_tuple_element_1 = var_ln_vision; PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_8fcb6395cf0c0f62db018c730b7394a7, exception_lineno); } else if (exception_tb->tb_frame != &frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_8fcb6395cf0c0f62db018c730b7394a7, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_8fcb6395cf0c0f62db018c730b7394a7, type_description_1, par_cls, par_model_name, par_img_size, par_drop_path_rate, par_use_grad_checkpoint, par_precision, var_visual_encoder, var_ln_vision ); // Release cached frame if used for exception. if (frame_8fcb6395cf0c0f62db018c730b7394a7 == cache_frame_8fcb6395cf0c0f62db018c730b7394a7) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_8fcb6395cf0c0f62db018c730b7394a7); cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = NULL; } assertFrameObject(frame_8fcb6395cf0c0f62db018c730b7394a7); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; CHECK_OBJECT(par_model_name); Py_DECREF(par_model_name); par_model_name = NULL; CHECK_OBJECT(par_img_size); Py_DECREF(par_img_size); par_img_size = NULL; CHECK_OBJECT(par_drop_path_rate); Py_DECREF(par_drop_path_rate); par_drop_path_rate = NULL; CHECK_OBJECT(par_use_grad_checkpoint); Py_DECREF(par_use_grad_checkpoint); par_use_grad_checkpoint = NULL; CHECK_OBJECT(par_precision); Py_DECREF(par_precision); par_precision = NULL; Py_XDECREF(var_visual_encoder); var_visual_encoder = NULL; CHECK_OBJECT(var_ln_vision); Py_DECREF(var_ln_vision); var_ln_vision = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(par_cls); Py_DECREF(par_cls); par_cls = NULL; CHECK_OBJECT(par_model_name); Py_DECREF(par_model_name); par_model_name = NULL; CHECK_OBJECT(par_img_size); Py_DECREF(par_img_size); par_img_size = NULL; CHECK_OBJECT(par_drop_path_rate); Py_DECREF(par_drop_path_rate); par_drop_path_rate = NULL; CHECK_OBJECT(par_use_grad_checkpoint); Py_DECREF(par_use_grad_checkpoint); par_use_grad_checkpoint = NULL; CHECK_OBJECT(par_precision); Py_DECREF(par_precision); par_precision = NULL; Py_XDECREF(var_visual_encoder); var_visual_encoder = NULL; Py_XDECREF(var_ln_vision); var_ln_vision = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__5_load_from_pretrained(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[0]; PyObject *par_url_or_filename = python_pars[1]; PyObject *var_cached_file = NULL; PyObject *var_checkpoint = NULL; PyObject *var_state_dict = NULL; PyObject *var_msg = NULL; struct Nuitka_FrameObject *frame_e23fcdacbf76938ecc6dc87b76499068; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; static struct Nuitka_FrameObject *cache_frame_e23fcdacbf76938ecc6dc87b76499068 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_e23fcdacbf76938ecc6dc87b76499068)) { Py_XDECREF(cache_frame_e23fcdacbf76938ecc6dc87b76499068); #if _DEBUG_REFCOUNTS if (cache_frame_e23fcdacbf76938ecc6dc87b76499068 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_e23fcdacbf76938ecc6dc87b76499068 = MAKE_FUNCTION_FRAME(codeobj_e23fcdacbf76938ecc6dc87b76499068, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_e23fcdacbf76938ecc6dc87b76499068->m_type_description == NULL); frame_e23fcdacbf76938ecc6dc87b76499068 = cache_frame_e23fcdacbf76938ecc6dc87b76499068; // Push the new frame as the currently active one. pushFrameStack(frame_e23fcdacbf76938ecc6dc87b76499068); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_e23fcdacbf76938ecc6dc87b76499068) == 2); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_called_name_1; PyObject *tmp_call_result_1; PyObject *tmp_args_element_name_1; int tmp_truth_name_1; tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[41]); if (unlikely(tmp_called_name_1 == NULL)) { tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[41]); } if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 73; type_description_1 = "oooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(par_url_or_filename); tmp_args_element_name_1 = par_url_or_filename; frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 73; tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); if (tmp_call_result_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 73; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1); if (tmp_truth_name_1 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_call_result_1); exception_lineno = 73; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; Py_DECREF(tmp_call_result_1); if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { goto branch_yes_1; } else { goto branch_no_1; } } branch_yes_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_2; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_kwargs_name_1; tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[42]); if (unlikely(tmp_called_name_2 == NULL)) { tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); } if (tmp_called_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 74; type_description_1 = "oooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(par_url_or_filename); tmp_tuple_element_1 = par_url_or_filename; tmp_args_name_1 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); tmp_kwargs_name_1 = PyDict_Copy(mod_consts[43]); frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 74; tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); Py_DECREF(tmp_args_name_1); Py_DECREF(tmp_kwargs_name_1); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 74; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert(var_cached_file == NULL); var_cached_file = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_3; PyObject *tmp_expression_name_1; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_2; PyObject *tmp_kwargs_name_2; tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_1 == NULL)) { tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 77; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[44]); if (tmp_called_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 77; type_description_1 = "oooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_cached_file); tmp_tuple_element_2 = var_cached_file; tmp_args_name_2 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); tmp_kwargs_name_2 = PyDict_Copy(mod_consts[45]); frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 77; tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); Py_DECREF(tmp_called_name_3); Py_DECREF(tmp_args_name_2); Py_DECREF(tmp_kwargs_name_2); if (tmp_assign_source_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 77; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert(var_checkpoint == NULL); var_checkpoint = tmp_assign_source_2; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_called_instance_1; PyObject *tmp_expression_name_2; PyObject *tmp_call_result_2; PyObject *tmp_args_element_name_2; int tmp_truth_name_2; tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[46]); if (unlikely(tmp_expression_name_2 == NULL)) { tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); } if (tmp_expression_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 78; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[47]); if (tmp_called_instance_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 78; type_description_1 = "oooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(par_url_or_filename); tmp_args_element_name_2 = par_url_or_filename; frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 78; tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[48], tmp_args_element_name_2); Py_DECREF(tmp_called_instance_1); if (tmp_call_result_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 78; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_2); if (tmp_truth_name_2 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_call_result_2); exception_lineno = 78; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; Py_DECREF(tmp_call_result_2); if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { goto branch_yes_2; } else { goto branch_no_2; } } branch_yes_2:; { PyObject *tmp_assign_source_3; PyObject *tmp_called_name_4; PyObject *tmp_expression_name_3; PyObject *tmp_args_name_3; PyObject *tmp_tuple_element_3; PyObject *tmp_kwargs_name_3; tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_3 == NULL)) { tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 79; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); if (tmp_called_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 79; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if (par_url_or_filename == NULL) { Py_DECREF(tmp_called_name_4); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 79; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_tuple_element_3 = par_url_or_filename; tmp_args_name_3 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); tmp_kwargs_name_3 = PyDict_Copy(mod_consts[45]); frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 79; tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); Py_DECREF(tmp_called_name_4); Py_DECREF(tmp_args_name_3); Py_DECREF(tmp_kwargs_name_3); if (tmp_assign_source_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 79; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert(var_checkpoint == NULL); var_checkpoint = tmp_assign_source_3; } goto branch_end_2; branch_no_2:; { PyObject *tmp_raise_type_1; PyObject *tmp_make_exception_arg_1; tmp_make_exception_arg_1 = mod_consts[50]; frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 81; tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); assert(!(tmp_raise_type_1 == NULL)); exception_type = tmp_raise_type_1; exception_lineno = 81; RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); type_description_1 = "oooooo"; goto frame_exception_exit_1; } branch_end_2:; branch_end_1:; { PyObject *tmp_assign_source_4; PyObject *tmp_expression_name_4; PyObject *tmp_subscript_name_1; if (var_checkpoint == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 83; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_expression_name_4 = var_checkpoint; tmp_subscript_name_1 = mod_consts[52]; tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); if (tmp_assign_source_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 83; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert(var_state_dict == NULL); var_state_dict = tmp_assign_source_4; } { PyObject *tmp_assign_source_5; PyObject *tmp_called_name_5; PyObject *tmp_expression_name_5; PyObject *tmp_args_name_4; PyObject *tmp_tuple_element_4; PyObject *tmp_kwargs_name_4; CHECK_OBJECT(par_self); tmp_expression_name_5 = par_self; tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[53]); if (tmp_called_name_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 85; type_description_1 = "oooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_state_dict); tmp_tuple_element_4 = var_state_dict; tmp_args_name_4 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); tmp_kwargs_name_4 = PyDict_Copy(mod_consts[54]); frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 85; tmp_assign_source_5 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); Py_DECREF(tmp_called_name_5); Py_DECREF(tmp_args_name_4); Py_DECREF(tmp_kwargs_name_4); if (tmp_assign_source_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 85; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert(var_msg == NULL); var_msg = tmp_assign_source_5; } { PyObject *tmp_called_name_6; PyObject *tmp_expression_name_6; PyObject *tmp_call_result_3; PyObject *tmp_args_element_name_3; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); if (unlikely(tmp_expression_name_6 == NULL)) { tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); } if (tmp_expression_name_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 88; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[56]); if (tmp_called_name_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 88; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_left_name_1 = mod_consts[57]; if (par_url_or_filename == NULL) { Py_DECREF(tmp_called_name_6); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 88; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_right_name_1 = par_url_or_filename; tmp_args_element_name_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_OBJECT(tmp_left_name_1, tmp_right_name_1); if (tmp_args_element_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_6); exception_lineno = 88; type_description_1 = "oooooo"; goto frame_exception_exit_1; } frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 88; tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_3); Py_DECREF(tmp_called_name_6); Py_DECREF(tmp_args_element_name_3); if (tmp_call_result_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 88; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_3); } #if 0 RESTORE_FRAME_EXCEPTION(frame_e23fcdacbf76938ecc6dc87b76499068); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_e23fcdacbf76938ecc6dc87b76499068); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_e23fcdacbf76938ecc6dc87b76499068, exception_lineno); } else if (exception_tb->tb_frame != &frame_e23fcdacbf76938ecc6dc87b76499068->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_e23fcdacbf76938ecc6dc87b76499068, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_e23fcdacbf76938ecc6dc87b76499068, type_description_1, par_self, par_url_or_filename, var_cached_file, var_checkpoint, var_state_dict, var_msg ); // Release cached frame if used for exception. if (frame_e23fcdacbf76938ecc6dc87b76499068 == cache_frame_e23fcdacbf76938ecc6dc87b76499068) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_e23fcdacbf76938ecc6dc87b76499068); cache_frame_e23fcdacbf76938ecc6dc87b76499068 = NULL; } assertFrameObject(frame_e23fcdacbf76938ecc6dc87b76499068); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; CHECK_OBJECT(var_msg); tmp_return_value = var_msg; Py_INCREF(tmp_return_value); goto try_return_handler_1; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; Py_XDECREF(par_self); par_self = NULL; Py_XDECREF(par_url_or_filename); par_url_or_filename = NULL; Py_XDECREF(var_cached_file); var_cached_file = NULL; Py_XDECREF(var_checkpoint); var_checkpoint = NULL; Py_XDECREF(var_state_dict); var_state_dict = NULL; CHECK_OBJECT(var_msg); Py_DECREF(var_msg); var_msg = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(par_self); par_self = NULL; Py_XDECREF(par_url_or_filename); par_url_or_filename = NULL; Py_XDECREF(var_cached_file); var_cached_file = NULL; Py_XDECREF(var_checkpoint); var_checkpoint = NULL; Py_XDECREF(var_state_dict); var_state_dict = NULL; Py_XDECREF(var_msg); var_msg = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__6_disabled_train(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[0]; PyObject *par_mode = python_pars[1]; PyObject *tmp_return_value = NULL; // Actual function body. // Tried code: CHECK_OBJECT(par_self); tmp_return_value = par_self; Py_INCREF(tmp_return_value); goto try_return_handler_1; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; CHECK_OBJECT(par_self); Py_DECREF(par_self); par_self = NULL; CHECK_OBJECT(par_mode); Py_DECREF(par_mode); par_mode = NULL; goto function_return_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__7_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[0]; PyObject *par_x = python_pars[1]; PyObject *var_orig_type = NULL; PyObject *var_ret = NULL; struct Nuitka_FrameObject *frame_4a4587fc6b26979d42283eb077ac36b8; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_4a4587fc6b26979d42283eb077ac36b8 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_4a4587fc6b26979d42283eb077ac36b8)) { Py_XDECREF(cache_frame_4a4587fc6b26979d42283eb077ac36b8); #if _DEBUG_REFCOUNTS if (cache_frame_4a4587fc6b26979d42283eb077ac36b8 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_4a4587fc6b26979d42283eb077ac36b8 = MAKE_FUNCTION_FRAME(codeobj_4a4587fc6b26979d42283eb077ac36b8, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_4a4587fc6b26979d42283eb077ac36b8->m_type_description == NULL); frame_4a4587fc6b26979d42283eb077ac36b8 = cache_frame_4a4587fc6b26979d42283eb077ac36b8; // Push the new frame as the currently active one. pushFrameStack(frame_4a4587fc6b26979d42283eb077ac36b8); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_4a4587fc6b26979d42283eb077ac36b8) == 2); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_expression_name_1; CHECK_OBJECT(par_x); tmp_expression_name_1 = par_x; tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 103; type_description_1 = "ooooc"; goto frame_exception_exit_1; } assert(var_orig_type == NULL); var_orig_type = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_1; PyObject *tmp_expression_name_2; PyObject *tmp_type_arg_name_1; PyObject *tmp_object_arg_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_2; PyObject *tmp_expression_name_3; PyObject *tmp_args_element_name_2; PyObject *tmp_expression_name_4; if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[59]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); CHECK_OBJECT(par_self); tmp_object_arg_name_1 = par_self; tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); if (tmp_expression_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[60]); Py_DECREF(tmp_expression_name_2); if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } if (par_x == NULL) { Py_DECREF(tmp_called_name_1); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } tmp_expression_name_3 = par_x; tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[62]); if (tmp_called_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_1); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_4 == NULL)) { tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_1); Py_DECREF(tmp_called_name_2); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[63]); if (tmp_args_element_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_1); Py_DECREF(tmp_called_name_2); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 104; tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); Py_DECREF(tmp_called_name_2); Py_DECREF(tmp_args_element_name_2); if (tmp_args_element_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_1); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 104; tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); Py_DECREF(tmp_called_name_1); Py_DECREF(tmp_args_element_name_1); if (tmp_assign_source_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 104; type_description_1 = "ooooc"; goto frame_exception_exit_1; } assert(var_ret == NULL); var_ret = tmp_assign_source_2; } { PyObject *tmp_called_instance_1; PyObject *tmp_args_element_name_3; CHECK_OBJECT(var_ret); tmp_called_instance_1 = var_ret; CHECK_OBJECT(var_orig_type); tmp_args_element_name_3 = var_orig_type; frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 105; tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[62], tmp_args_element_name_3); if (tmp_return_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 105; type_description_1 = "ooooc"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_4a4587fc6b26979d42283eb077ac36b8, exception_lineno); } else if (exception_tb->tb_frame != &frame_4a4587fc6b26979d42283eb077ac36b8->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_4a4587fc6b26979d42283eb077ac36b8, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_4a4587fc6b26979d42283eb077ac36b8, type_description_1, par_self, par_x, var_orig_type, var_ret, self->m_closure[0] ); // Release cached frame if used for exception. if (frame_4a4587fc6b26979d42283eb077ac36b8 == cache_frame_4a4587fc6b26979d42283eb077ac36b8) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_4a4587fc6b26979d42283eb077ac36b8); cache_frame_4a4587fc6b26979d42283eb077ac36b8 = NULL; } assertFrameObject(frame_4a4587fc6b26979d42283eb077ac36b8); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; CHECK_OBJECT(par_self); Py_DECREF(par_self); par_self = NULL; Py_XDECREF(par_x); par_x = NULL; Py_XDECREF(var_orig_type); var_orig_type = NULL; Py_XDECREF(var_ret); var_ret = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(par_self); Py_DECREF(par_self); par_self = NULL; Py_XDECREF(par_x); par_x = NULL; Py_XDECREF(var_orig_type); var_orig_type = NULL; Py_XDECREF(var_ret); var_ret = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *impl_models$blip2$$$function__8_compute_sim_matrix(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_model = python_pars[0]; PyObject *par_data_loader = python_pars[1]; PyObject *par_kwargs = python_pars[2]; PyObject *var_k_test = NULL; PyObject *var_metric_logger = NULL; PyObject *var_header = NULL; PyObject *var_start_time = NULL; PyObject *var_texts = NULL; PyObject *var_num_text = NULL; PyObject *var_text_bs = NULL; PyObject *var_text_ids = NULL; PyObject *var_text_embeds = NULL; PyObject *var_text_atts = NULL; PyObject *var_i = NULL; PyObject *var_text = NULL; PyObject *var_text_input = NULL; PyObject *var_text_feat = NULL; PyObject *var_text_embed = NULL; PyObject *var_vit_feats = NULL; PyObject *var_image_embeds = NULL; PyObject *var_samples = NULL; PyObject *var_image = NULL; PyObject *var_image_feat = NULL; PyObject *var_vit_feat = NULL; PyObject *var_image_embed = NULL; PyObject *var_sims_matrix = NULL; PyObject *var_sim_q2t = NULL; PyObject *var_sim_i2t = NULL; PyObject *var__ = NULL; PyObject *var_score_matrix_i2t = NULL; PyObject *var_num_tasks = NULL; PyObject *var_rank = NULL; PyObject *var_step = NULL; PyObject *var_start = NULL; PyObject *var_end = NULL; PyObject *var_sims = NULL; PyObject *var_topk_sim = NULL; PyObject *var_topk_idx = NULL; PyObject *var_image_inputs = NULL; PyObject *var_score = NULL; PyObject *var_score_matrix_t2i = NULL; PyObject *var_total_time = NULL; PyObject *var_total_time_str = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; PyObject *tmp_for_loop_2__for_iterator = NULL; PyObject *tmp_for_loop_2__iter_value = NULL; PyObject *tmp_for_loop_3__for_iterator = NULL; PyObject *tmp_for_loop_3__iter_value = NULL; PyObject *tmp_for_loop_4__for_iterator = NULL; PyObject *tmp_for_loop_4__iter_value = NULL; PyObject *tmp_for_loop_5__for_iterator = NULL; PyObject *tmp_for_loop_5__iter_value = NULL; PyObject *tmp_tuple_unpack_1__element_1 = NULL; PyObject *tmp_tuple_unpack_1__element_2 = NULL; PyObject *tmp_tuple_unpack_1__source_iter = NULL; PyObject *tmp_tuple_unpack_2__element_1 = NULL; PyObject *tmp_tuple_unpack_2__element_2 = NULL; PyObject *tmp_tuple_unpack_2__source_iter = NULL; PyObject *tmp_tuple_unpack_3__element_1 = NULL; PyObject *tmp_tuple_unpack_3__element_2 = NULL; PyObject *tmp_tuple_unpack_3__source_iter = NULL; PyObject *tmp_tuple_unpack_4__element_1 = NULL; PyObject *tmp_tuple_unpack_4__element_2 = NULL; PyObject *tmp_tuple_unpack_4__source_iter = NULL; PyObject *tmp_tuple_unpack_5__element_1 = NULL; PyObject *tmp_tuple_unpack_5__element_2 = NULL; PyObject *tmp_tuple_unpack_5__source_iter = NULL; PyObject *tmp_tuple_unpack_6__element_1 = NULL; PyObject *tmp_tuple_unpack_6__element_2 = NULL; PyObject *tmp_tuple_unpack_6__source_iter = NULL; struct Nuitka_FrameObject *frame_34e4752d34c2c5cc3b4ee22e380d2d44; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *tmp_iterator_attempt; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; PyObject *exception_keeper_type_6; PyObject *exception_keeper_value_6; PyTracebackObject *exception_keeper_tb_6; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; PyObject *exception_keeper_type_7; PyObject *exception_keeper_value_7; PyTracebackObject *exception_keeper_tb_7; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; PyObject *exception_keeper_type_8; PyObject *exception_keeper_value_8; PyTracebackObject *exception_keeper_tb_8; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; PyObject *exception_keeper_type_9; PyObject *exception_keeper_value_9; PyTracebackObject *exception_keeper_tb_9; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; int tmp_res; PyObject *exception_keeper_type_10; PyObject *exception_keeper_value_10; PyTracebackObject *exception_keeper_tb_10; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; PyObject *exception_keeper_type_11; PyObject *exception_keeper_value_11; PyTracebackObject *exception_keeper_tb_11; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; bool tmp_result; PyObject *exception_keeper_type_12; PyObject *exception_keeper_value_12; PyTracebackObject *exception_keeper_tb_12; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; PyObject *exception_keeper_type_13; PyObject *exception_keeper_value_13; PyTracebackObject *exception_keeper_tb_13; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; PyObject *exception_keeper_type_14; PyObject *exception_keeper_value_14; PyTracebackObject *exception_keeper_tb_14; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; PyObject *exception_keeper_type_15; PyObject *exception_keeper_value_15; PyTracebackObject *exception_keeper_tb_15; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; PyObject *exception_keeper_type_16; PyObject *exception_keeper_value_16; PyTracebackObject *exception_keeper_tb_16; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; PyObject *exception_keeper_type_17; PyObject *exception_keeper_value_17; PyTracebackObject *exception_keeper_tb_17; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = NULL; PyObject *exception_keeper_type_18; PyObject *exception_keeper_value_18; PyTracebackObject *exception_keeper_tb_18; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; // Actual function body. // Tried code: if (isFrameUnusable(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44)) { Py_XDECREF(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44); #if _DEBUG_REFCOUNTS if (cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = MAKE_FUNCTION_FRAME(codeobj_34e4752d34c2c5cc3b4ee22e380d2d44, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_type_description == NULL); frame_34e4752d34c2c5cc3b4ee22e380d2d44 = cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44; // Push the new frame as the currently active one. pushFrameStack(frame_34e4752d34c2c5cc3b4ee22e380d2d44); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_34e4752d34c2c5cc3b4ee22e380d2d44) == 2); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_instance_1; CHECK_OBJECT(par_kwargs); tmp_called_instance_1 = par_kwargs; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 109; tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, mod_consts[64], &PyTuple_GET_ITEM(mod_consts[65], 0) ); if (tmp_assign_source_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 109; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_k_test == NULL); var_k_test = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_1; PyObject *tmp_kwargs_name_1; tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[66]); if (unlikely(tmp_called_name_1 == NULL)) { tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[66]); } if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 111; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_kwargs_name_1 = PyDict_Copy(mod_consts[67]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 111; tmp_assign_source_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); Py_DECREF(tmp_kwargs_name_1); if (tmp_assign_source_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 111; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_metric_logger == NULL); var_metric_logger = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; tmp_assign_source_3 = mod_consts[68]; assert(var_header == NULL); Py_INCREF(tmp_assign_source_3); var_header = tmp_assign_source_3; } { PyObject *tmp_called_instance_2; PyObject *tmp_call_result_1; tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); if (unlikely(tmp_called_instance_2 == NULL)) { tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); } if (tmp_called_instance_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 114; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 114; tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, mod_consts[56], &PyTuple_GET_ITEM(mod_consts[69], 0) ); if (tmp_call_result_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 114; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_1); } { PyObject *tmp_assign_source_4; PyObject *tmp_called_instance_3; tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70]); if (unlikely(tmp_called_instance_3 == NULL)) { tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); } if (tmp_called_instance_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 115; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 115; tmp_assign_source_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[70]); if (tmp_assign_source_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 115; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_start_time == NULL); var_start_time = tmp_assign_source_4; } { PyObject *tmp_assign_source_5; PyObject *tmp_expression_name_1; PyObject *tmp_expression_name_2; CHECK_OBJECT(par_data_loader); tmp_expression_name_2 = par_data_loader; tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[71]); if (tmp_expression_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 117; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_assign_source_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); Py_DECREF(tmp_expression_name_1); if (tmp_assign_source_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 117; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_texts == NULL); var_texts = tmp_assign_source_5; } { PyObject *tmp_assign_source_6; PyObject *tmp_len_arg_1; CHECK_OBJECT(var_texts); tmp_len_arg_1 = var_texts; tmp_assign_source_6 = BUILTIN_LEN(tmp_len_arg_1); if (tmp_assign_source_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 118; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_num_text == NULL); var_num_text = tmp_assign_source_6; } { PyObject *tmp_assign_source_7; tmp_assign_source_7 = mod_consts[73]; assert(var_text_bs == NULL); Py_INCREF(tmp_assign_source_7); var_text_bs = tmp_assign_source_7; } { PyObject *tmp_assign_source_8; tmp_assign_source_8 = PyList_New(0); assert(var_text_ids == NULL); var_text_ids = tmp_assign_source_8; } { PyObject *tmp_assign_source_9; tmp_assign_source_9 = PyList_New(0); assert(var_text_embeds == NULL); var_text_embeds = tmp_assign_source_9; } { PyObject *tmp_assign_source_10; tmp_assign_source_10 = PyList_New(0); assert(var_text_atts == NULL); var_text_atts = tmp_assign_source_10; } { PyObject *tmp_assign_source_11; PyObject *tmp_iter_arg_1; PyObject *tmp_xrange_low_1; PyObject *tmp_xrange_high_1; PyObject *tmp_xrange_step_1; tmp_xrange_low_1 = mod_consts[74]; CHECK_OBJECT(var_num_text); tmp_xrange_high_1 = var_num_text; CHECK_OBJECT(var_text_bs); tmp_xrange_step_1 = var_text_bs; tmp_iter_arg_1 = BUILTIN_XRANGE3(tmp_xrange_low_1, tmp_xrange_high_1, tmp_xrange_step_1); if (tmp_iter_arg_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 123; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_1); Py_DECREF(tmp_iter_arg_1); if (tmp_assign_source_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 123; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(tmp_for_loop_1__for_iterator == NULL); tmp_for_loop_1__for_iterator = tmp_assign_source_11; } // Tried code: loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_12; CHECK_OBJECT(tmp_for_loop_1__for_iterator); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_1); if (tmp_assign_source_12 == NULL) { if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 123; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_12; Py_XDECREF(old); } } { PyObject *tmp_assign_source_13; CHECK_OBJECT(tmp_for_loop_1__iter_value); tmp_assign_source_13 = tmp_for_loop_1__iter_value; { PyObject *old = var_i; var_i = tmp_assign_source_13; Py_INCREF(var_i); Py_XDECREF(old); } } { PyObject *tmp_assign_source_14; PyObject *tmp_expression_name_3; PyObject *tmp_subscript_name_1; PyObject *tmp_start_name_1; PyObject *tmp_stop_name_1; PyObject *tmp_called_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; if (var_texts == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_3 = var_texts; CHECK_OBJECT(var_i); tmp_start_name_1 = var_i; tmp_called_name_2 = LOOKUP_BUILTIN(mod_consts[76]); assert(tmp_called_name_2 != NULL); if (var_num_text == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_args_element_name_1 = var_num_text; CHECK_OBJECT(var_i); tmp_left_name_1 = var_i; if (var_text_bs == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_right_name_1 = var_text_bs; tmp_args_element_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); if (tmp_args_element_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 124; { PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; tmp_stop_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); } Py_DECREF(tmp_args_element_name_2); if (tmp_stop_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_subscript_name_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); Py_DECREF(tmp_stop_name_1); assert(!(tmp_subscript_name_1 == NULL)); tmp_assign_source_14 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); Py_DECREF(tmp_subscript_name_1); if (tmp_assign_source_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 124; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_text; var_text = tmp_assign_source_14; Py_XDECREF(old); } } { PyObject *tmp_assign_source_15; PyObject *tmp_called_name_3; PyObject *tmp_expression_name_4; PyObject *tmp_called_name_4; PyObject *tmp_expression_name_5; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_kwargs_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_expression_name_6; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 125; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_5 = par_model; tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[5]); if (tmp_called_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 125; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } CHECK_OBJECT(var_text); tmp_tuple_element_1 = var_text; tmp_args_name_1 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); tmp_kwargs_name_2 = PyDict_Copy(mod_consts[79]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 125; tmp_expression_name_4 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_1, tmp_kwargs_name_2); Py_DECREF(tmp_called_name_4); Py_DECREF(tmp_args_name_1); Py_DECREF(tmp_kwargs_name_2); if (tmp_expression_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 125; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[80]); Py_DECREF(tmp_expression_name_4); if (tmp_called_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 125; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } if (par_model == NULL) { Py_DECREF(tmp_called_name_3); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 131; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_6 = par_model; tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[6]); if (tmp_args_element_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_3); exception_lineno = 131; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 125; tmp_assign_source_15 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); Py_DECREF(tmp_called_name_3); Py_DECREF(tmp_args_element_name_3); if (tmp_assign_source_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 125; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_text_input; var_text_input = tmp_assign_source_15; Py_XDECREF(old); } } { PyObject *tmp_assign_source_16; PyObject *tmp_called_instance_4; PyObject *tmp_args_element_name_4; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 132; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_called_instance_4 = par_model; CHECK_OBJECT(var_text_input); tmp_args_element_name_4 = var_text_input; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 132; tmp_assign_source_16 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[81], tmp_args_element_name_4); if (tmp_assign_source_16 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 132; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_text_feat; var_text_feat = tmp_assign_source_16; Py_XDECREF(old); } } { PyObject *tmp_assign_source_17; PyObject *tmp_called_name_5; PyObject *tmp_expression_name_7; PyObject *tmp_args_element_name_5; PyObject *tmp_called_instance_5; PyObject *tmp_args_element_name_6; tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82]); if (unlikely(tmp_expression_name_7 == NULL)) { tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[82]); } if (tmp_expression_name_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 133; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[83]); if (tmp_called_name_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 133; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } if (par_model == NULL) { Py_DECREF(tmp_called_name_5); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 133; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_called_instance_5 = par_model; CHECK_OBJECT(var_text_feat); tmp_args_element_name_6 = var_text_feat; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 133; tmp_args_element_name_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[84], tmp_args_element_name_6); if (tmp_args_element_name_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_5); exception_lineno = 133; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 133; tmp_assign_source_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_5); Py_DECREF(tmp_called_name_5); Py_DECREF(tmp_args_element_name_5); if (tmp_assign_source_17 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 133; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_text_embed; var_text_embed = tmp_assign_source_17; Py_XDECREF(old); } } { PyObject *tmp_called_instance_6; PyObject *tmp_call_result_2; PyObject *tmp_args_element_name_7; if (var_text_embeds == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 134; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_called_instance_6 = var_text_embeds; CHECK_OBJECT(var_text_embed); tmp_args_element_name_7 = var_text_embed; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 134; tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_6, mod_consts[86], tmp_args_element_name_7); if (tmp_call_result_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 134; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } Py_DECREF(tmp_call_result_2); } { PyObject *tmp_called_name_6; PyObject *tmp_expression_name_8; PyObject *tmp_call_result_3; PyObject *tmp_args_element_name_8; PyObject *tmp_expression_name_9; if (var_text_ids == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 135; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_8 = var_text_ids; tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[86]); if (tmp_called_name_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 135; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } if (var_text_input == NULL) { Py_DECREF(tmp_called_name_6); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[88]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 135; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_9 = var_text_input; tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[89]); if (tmp_args_element_name_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_6); exception_lineno = 135; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 135; tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); Py_DECREF(tmp_called_name_6); Py_DECREF(tmp_args_element_name_8); if (tmp_call_result_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 135; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } Py_DECREF(tmp_call_result_3); } { PyObject *tmp_called_name_7; PyObject *tmp_expression_name_10; PyObject *tmp_call_result_4; PyObject *tmp_args_element_name_9; PyObject *tmp_expression_name_11; if (var_text_atts == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 136; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_10 = var_text_atts; tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[86]); if (tmp_called_name_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 136; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } if (var_text_input == NULL) { Py_DECREF(tmp_called_name_7); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[88]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 136; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } tmp_expression_name_11 = var_text_input; tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[91]); if (tmp_args_element_name_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_7); exception_lineno = 136; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 136; tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); Py_DECREF(tmp_called_name_7); Py_DECREF(tmp_args_element_name_9); if (tmp_call_result_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 136; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } Py_DECREF(tmp_call_result_4); } if (CONSIDER_THREADING() == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 123; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; goto try_end_1; // Exception handler code: try_except_handler_2:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_for_loop_1__iter_value); tmp_for_loop_1__iter_value = NULL; Py_XDECREF(tmp_for_loop_1__for_iterator); tmp_for_loop_1__for_iterator = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto frame_exception_exit_1; // End of try: try_end_1:; Py_XDECREF(tmp_for_loop_1__iter_value); tmp_for_loop_1__iter_value = NULL; Py_XDECREF(tmp_for_loop_1__for_iterator); tmp_for_loop_1__for_iterator = NULL; { PyObject *tmp_assign_source_18; PyObject *tmp_called_name_8; PyObject *tmp_expression_name_12; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_2; PyObject *tmp_kwargs_name_3; tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_12 == NULL)) { tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_12 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 138; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[92]); if (tmp_called_name_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 138; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_text_embeds == NULL) { Py_DECREF(tmp_called_name_8); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 138; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_2 = var_text_embeds; tmp_args_name_2 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); tmp_kwargs_name_3 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 138; tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_2, tmp_kwargs_name_3); Py_DECREF(tmp_called_name_8); Py_DECREF(tmp_args_name_2); Py_DECREF(tmp_kwargs_name_3); if (tmp_assign_source_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 138; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_text_embeds; var_text_embeds = tmp_assign_source_18; Py_XDECREF(old); } } { PyObject *tmp_assign_source_19; PyObject *tmp_called_name_9; PyObject *tmp_expression_name_13; PyObject *tmp_args_name_3; PyObject *tmp_tuple_element_3; PyObject *tmp_kwargs_name_4; tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_13 == NULL)) { tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 139; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[92]); if (tmp_called_name_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 139; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_text_ids == NULL) { Py_DECREF(tmp_called_name_9); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 139; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_3 = var_text_ids; tmp_args_name_3 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); tmp_kwargs_name_4 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 139; tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_3, tmp_kwargs_name_4); Py_DECREF(tmp_called_name_9); Py_DECREF(tmp_args_name_3); Py_DECREF(tmp_kwargs_name_4); if (tmp_assign_source_19 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 139; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_text_ids; var_text_ids = tmp_assign_source_19; Py_XDECREF(old); } } { PyObject *tmp_assign_source_20; PyObject *tmp_called_name_10; PyObject *tmp_expression_name_14; PyObject *tmp_args_name_4; PyObject *tmp_tuple_element_4; PyObject *tmp_kwargs_name_5; tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_14 == NULL)) { tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 140; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[92]); if (tmp_called_name_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 140; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_text_atts == NULL) { Py_DECREF(tmp_called_name_10); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 140; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_4 = var_text_atts; tmp_args_name_4 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); tmp_kwargs_name_5 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 140; tmp_assign_source_20 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_4, tmp_kwargs_name_5); Py_DECREF(tmp_called_name_10); Py_DECREF(tmp_args_name_4); Py_DECREF(tmp_kwargs_name_5); if (tmp_assign_source_20 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 140; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_text_atts; var_text_atts = tmp_assign_source_20; Py_XDECREF(old); } } { PyObject *tmp_assign_source_21; tmp_assign_source_21 = PyList_New(0); assert(var_vit_feats == NULL); var_vit_feats = tmp_assign_source_21; } { PyObject *tmp_assign_source_22; tmp_assign_source_22 = PyList_New(0); assert(var_image_embeds == NULL); var_image_embeds = tmp_assign_source_22; } { PyObject *tmp_assign_source_23; PyObject *tmp_iter_arg_2; if (par_data_loader == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 144; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_iter_arg_2 = par_data_loader; tmp_assign_source_23 = MAKE_ITERATOR(tmp_iter_arg_2); if (tmp_assign_source_23 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 144; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(tmp_for_loop_2__for_iterator == NULL); tmp_for_loop_2__for_iterator = tmp_assign_source_23; } // Tried code: loop_start_2:; { PyObject *tmp_next_source_2; PyObject *tmp_assign_source_24; CHECK_OBJECT(tmp_for_loop_2__for_iterator); tmp_next_source_2 = tmp_for_loop_2__for_iterator; tmp_assign_source_24 = ITERATOR_NEXT(tmp_next_source_2); if (tmp_assign_source_24 == NULL) { if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { goto loop_end_2; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 144; goto try_except_handler_3; } } { PyObject *old = tmp_for_loop_2__iter_value; tmp_for_loop_2__iter_value = tmp_assign_source_24; Py_XDECREF(old); } } { PyObject *tmp_assign_source_25; CHECK_OBJECT(tmp_for_loop_2__iter_value); tmp_assign_source_25 = tmp_for_loop_2__iter_value; { PyObject *old = var_samples; var_samples = tmp_assign_source_25; Py_INCREF(var_samples); Py_XDECREF(old); } } { PyObject *tmp_assign_source_26; PyObject *tmp_expression_name_15; PyObject *tmp_subscript_name_2; CHECK_OBJECT(var_samples); tmp_expression_name_15 = var_samples; tmp_subscript_name_2 = mod_consts[95]; tmp_assign_source_26 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_2); if (tmp_assign_source_26 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 145; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_image; var_image = tmp_assign_source_26; Py_XDECREF(old); } } { PyObject *tmp_assign_source_27; PyObject *tmp_called_name_11; PyObject *tmp_expression_name_16; PyObject *tmp_args_element_name_10; PyObject *tmp_expression_name_17; CHECK_OBJECT(var_image); tmp_expression_name_16 = var_image; tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[80]); if (tmp_called_name_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 147; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } if (par_model == NULL) { Py_DECREF(tmp_called_name_11); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 147; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } tmp_expression_name_17 = par_model; tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[6]); if (tmp_args_element_name_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_11); exception_lineno = 147; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 147; tmp_assign_source_27 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_10); Py_DECREF(tmp_called_name_11); Py_DECREF(tmp_args_element_name_10); if (tmp_assign_source_27 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 147; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_image; var_image = tmp_assign_source_27; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_28; PyObject *tmp_iter_arg_3; PyObject *tmp_called_instance_7; PyObject *tmp_args_element_name_11; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 148; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_4; } tmp_called_instance_7 = par_model; CHECK_OBJECT(var_image); tmp_args_element_name_11 = var_image; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 148; tmp_iter_arg_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[96], tmp_args_element_name_11); if (tmp_iter_arg_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 148; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_4; } tmp_assign_source_28 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); Py_DECREF(tmp_iter_arg_3); if (tmp_assign_source_28 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 148; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_28; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_29; PyObject *tmp_unpack_1; CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_29 = UNPACK_NEXT(tmp_unpack_1, 0, 2); if (tmp_assign_source_29 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 148; goto try_except_handler_5; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_29; Py_XDECREF(old); } } { PyObject *tmp_assign_source_30; PyObject *tmp_unpack_2; CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_30 = UNPACK_NEXT(tmp_unpack_2, 1, 2); if (tmp_assign_source_30 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 148; goto try_except_handler_5; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_30; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_1; CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 148; goto try_except_handler_5; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 148; goto try_except_handler_5; } } goto try_end_2; // Exception handler code: try_except_handler_5:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_1__source_iter); tmp_tuple_unpack_1__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_4; // End of try: try_end_2:; goto try_end_3; // Exception handler code: try_except_handler_4:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_1__element_1); tmp_tuple_unpack_1__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_1__element_2); tmp_tuple_unpack_1__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto try_except_handler_3; // End of try: try_end_3:; Py_XDECREF(tmp_tuple_unpack_1__source_iter); tmp_tuple_unpack_1__source_iter = NULL; { PyObject *tmp_assign_source_31; CHECK_OBJECT(tmp_tuple_unpack_1__element_1); tmp_assign_source_31 = tmp_tuple_unpack_1__element_1; { PyObject *old = var_image_feat; var_image_feat = tmp_assign_source_31; Py_INCREF(var_image_feat); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_1__element_1); tmp_tuple_unpack_1__element_1 = NULL; { PyObject *tmp_assign_source_32; CHECK_OBJECT(tmp_tuple_unpack_1__element_2); tmp_assign_source_32 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_vit_feat; var_vit_feat = tmp_assign_source_32; Py_INCREF(var_vit_feat); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_1__element_2); tmp_tuple_unpack_1__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_1__element_1); tmp_tuple_unpack_1__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_1__element_2); tmp_tuple_unpack_1__element_2 = NULL; { PyObject *tmp_assign_source_33; PyObject *tmp_called_instance_8; PyObject *tmp_args_element_name_12; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 149; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } tmp_called_instance_8 = par_model; CHECK_OBJECT(var_image_feat); tmp_args_element_name_12 = var_image_feat; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 149; tmp_assign_source_33 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[98], tmp_args_element_name_12); if (tmp_assign_source_33 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 149; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_image_embed; var_image_embed = tmp_assign_source_33; Py_XDECREF(old); } } { PyObject *tmp_assign_source_34; PyObject *tmp_called_name_12; PyObject *tmp_expression_name_18; PyObject *tmp_args_name_5; PyObject *tmp_tuple_element_5; PyObject *tmp_kwargs_name_6; tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82]); if (unlikely(tmp_expression_name_18 == NULL)) { tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[82]); } if (tmp_expression_name_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 150; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[83]); if (tmp_called_name_12 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 150; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } CHECK_OBJECT(var_image_embed); tmp_tuple_element_5 = var_image_embed; tmp_args_name_5 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_5); tmp_kwargs_name_6 = PyDict_Copy(mod_consts[99]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 150; tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_5, tmp_kwargs_name_6); Py_DECREF(tmp_called_name_12); Py_DECREF(tmp_args_name_5); Py_DECREF(tmp_kwargs_name_6); if (tmp_assign_source_34 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 150; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_image_embed; var_image_embed = tmp_assign_source_34; Py_XDECREF(old); } } { PyObject *tmp_called_name_13; PyObject *tmp_expression_name_19; PyObject *tmp_call_result_5; PyObject *tmp_args_element_name_13; PyObject *tmp_called_instance_9; if (var_vit_feats == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 152; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } tmp_expression_name_19 = var_vit_feats; tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[86]); if (tmp_called_name_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 152; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } CHECK_OBJECT(var_vit_feat); tmp_called_instance_9 = var_vit_feat; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 152; tmp_args_element_name_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[101]); if (tmp_args_element_name_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_13); exception_lineno = 152; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 152; tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_13); Py_DECREF(tmp_called_name_13); Py_DECREF(tmp_args_element_name_13); if (tmp_call_result_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 152; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } Py_DECREF(tmp_call_result_5); } { PyObject *tmp_called_instance_10; PyObject *tmp_call_result_6; PyObject *tmp_args_element_name_14; if (var_image_embeds == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 153; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } tmp_called_instance_10 = var_image_embeds; CHECK_OBJECT(var_image_embed); tmp_args_element_name_14 = var_image_embed; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 153; tmp_call_result_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_10, mod_consts[86], tmp_args_element_name_14); if (tmp_call_result_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 153; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } Py_DECREF(tmp_call_result_6); } if (CONSIDER_THREADING() == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 144; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_3; } goto loop_start_2; loop_end_2:; goto try_end_4; // Exception handler code: try_except_handler_3:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_for_loop_2__iter_value); tmp_for_loop_2__iter_value = NULL; Py_XDECREF(tmp_for_loop_2__for_iterator); tmp_for_loop_2__for_iterator = NULL; // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto frame_exception_exit_1; // End of try: try_end_4:; Py_XDECREF(tmp_for_loop_2__iter_value); tmp_for_loop_2__iter_value = NULL; Py_XDECREF(tmp_for_loop_2__for_iterator); tmp_for_loop_2__for_iterator = NULL; { PyObject *tmp_assign_source_35; PyObject *tmp_called_name_14; PyObject *tmp_expression_name_20; PyObject *tmp_args_name_6; PyObject *tmp_tuple_element_6; PyObject *tmp_kwargs_name_7; tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_20 == NULL)) { tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_20 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 155; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[92]); if (tmp_called_name_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 155; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_vit_feats == NULL) { Py_DECREF(tmp_called_name_14); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 155; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_6 = var_vit_feats; tmp_args_name_6 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); tmp_kwargs_name_7 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 155; tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_6, tmp_kwargs_name_7); Py_DECREF(tmp_called_name_14); Py_DECREF(tmp_args_name_6); Py_DECREF(tmp_kwargs_name_7); if (tmp_assign_source_35 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 155; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_vit_feats; var_vit_feats = tmp_assign_source_35; Py_XDECREF(old); } } { PyObject *tmp_assign_source_36; PyObject *tmp_called_name_15; PyObject *tmp_expression_name_21; PyObject *tmp_args_name_7; PyObject *tmp_tuple_element_7; PyObject *tmp_kwargs_name_8; tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_21 == NULL)) { tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_21 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 156; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[92]); if (tmp_called_name_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 156; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_image_embeds == NULL) { Py_DECREF(tmp_called_name_15); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 156; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_7 = var_image_embeds; tmp_args_name_7 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_7); tmp_kwargs_name_8 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 156; tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_7, tmp_kwargs_name_8); Py_DECREF(tmp_called_name_15); Py_DECREF(tmp_args_name_7); Py_DECREF(tmp_kwargs_name_8); if (tmp_assign_source_36 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 156; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_image_embeds; var_image_embeds = tmp_assign_source_36; Py_XDECREF(old); } } { PyObject *tmp_assign_source_37; tmp_assign_source_37 = PyList_New(0); assert(var_sims_matrix == NULL); var_sims_matrix = tmp_assign_source_37; } { PyObject *tmp_assign_source_38; PyObject *tmp_iter_arg_4; CHECK_OBJECT(var_image_embeds); tmp_iter_arg_4 = var_image_embeds; tmp_assign_source_38 = MAKE_ITERATOR(tmp_iter_arg_4); if (tmp_assign_source_38 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 159; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(tmp_for_loop_3__for_iterator == NULL); tmp_for_loop_3__for_iterator = tmp_assign_source_38; } // Tried code: loop_start_3:; { PyObject *tmp_next_source_3; PyObject *tmp_assign_source_39; CHECK_OBJECT(tmp_for_loop_3__for_iterator); tmp_next_source_3 = tmp_for_loop_3__for_iterator; tmp_assign_source_39 = ITERATOR_NEXT(tmp_next_source_3); if (tmp_assign_source_39 == NULL) { if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { goto loop_end_3; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 159; goto try_except_handler_6; } } { PyObject *old = tmp_for_loop_3__iter_value; tmp_for_loop_3__iter_value = tmp_assign_source_39; Py_XDECREF(old); } } { PyObject *tmp_assign_source_40; CHECK_OBJECT(tmp_for_loop_3__iter_value); tmp_assign_source_40 = tmp_for_loop_3__iter_value; { PyObject *old = var_image_embed; var_image_embed = tmp_assign_source_40; Py_INCREF(var_image_embed); Py_XDECREF(old); } } { PyObject *tmp_assign_source_41; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_called_instance_11; CHECK_OBJECT(var_image_embed); tmp_left_name_2 = var_image_embed; if (var_text_embeds == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 160; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } tmp_called_instance_11 = var_text_embeds; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 160; tmp_right_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[103]); if (tmp_right_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 160; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } tmp_assign_source_41 = BINARY_OPERATION_MATMULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); Py_DECREF(tmp_right_name_2); if (tmp_assign_source_41 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 160; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } { PyObject *old = var_sim_q2t; var_sim_q2t = tmp_assign_source_41; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_42; PyObject *tmp_iter_arg_5; PyObject *tmp_called_instance_12; CHECK_OBJECT(var_sim_q2t); tmp_called_instance_12 = var_sim_q2t; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 161; tmp_iter_arg_5 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_12, mod_consts[104], &PyTuple_GET_ITEM(mod_consts[105], 0) ); if (tmp_iter_arg_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 161; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_7; } tmp_assign_source_42 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_5); Py_DECREF(tmp_iter_arg_5); if (tmp_assign_source_42 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 161; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__source_iter; tmp_tuple_unpack_2__source_iter = tmp_assign_source_42; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_43; PyObject *tmp_unpack_3; CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_43 = UNPACK_NEXT(tmp_unpack_3, 0, 2); if (tmp_assign_source_43 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 161; goto try_except_handler_8; } { PyObject *old = tmp_tuple_unpack_2__element_1; tmp_tuple_unpack_2__element_1 = tmp_assign_source_43; Py_XDECREF(old); } } { PyObject *tmp_assign_source_44; PyObject *tmp_unpack_4; CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_44 = UNPACK_NEXT(tmp_unpack_4, 1, 2); if (tmp_assign_source_44 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 161; goto try_except_handler_8; } { PyObject *old = tmp_tuple_unpack_2__element_2; tmp_tuple_unpack_2__element_2 = tmp_assign_source_44; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_2; CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 161; goto try_except_handler_8; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 161; goto try_except_handler_8; } } goto try_end_5; // Exception handler code: try_except_handler_8:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_2__source_iter); tmp_tuple_unpack_2__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_5; exception_value = exception_keeper_value_5; exception_tb = exception_keeper_tb_5; exception_lineno = exception_keeper_lineno_5; goto try_except_handler_7; // End of try: try_end_5:; goto try_end_6; // Exception handler code: try_except_handler_7:; exception_keeper_type_6 = exception_type; exception_keeper_value_6 = exception_value; exception_keeper_tb_6 = exception_tb; exception_keeper_lineno_6 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_2__element_1); tmp_tuple_unpack_2__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_2__element_2); tmp_tuple_unpack_2__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_6; exception_value = exception_keeper_value_6; exception_tb = exception_keeper_tb_6; exception_lineno = exception_keeper_lineno_6; goto try_except_handler_6; // End of try: try_end_6:; Py_XDECREF(tmp_tuple_unpack_2__source_iter); tmp_tuple_unpack_2__source_iter = NULL; { PyObject *tmp_assign_source_45; CHECK_OBJECT(tmp_tuple_unpack_2__element_1); tmp_assign_source_45 = tmp_tuple_unpack_2__element_1; { PyObject *old = var_sim_i2t; var_sim_i2t = tmp_assign_source_45; Py_INCREF(var_sim_i2t); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_2__element_1); tmp_tuple_unpack_2__element_1 = NULL; { PyObject *tmp_assign_source_46; CHECK_OBJECT(tmp_tuple_unpack_2__element_2); tmp_assign_source_46 = tmp_tuple_unpack_2__element_2; { PyObject *old = var__; var__ = tmp_assign_source_46; Py_INCREF(var__); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_2__element_2); tmp_tuple_unpack_2__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_2__element_1); tmp_tuple_unpack_2__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_2__element_2); tmp_tuple_unpack_2__element_2 = NULL; { PyObject *tmp_called_instance_13; PyObject *tmp_call_result_7; PyObject *tmp_args_element_name_15; if (var_sims_matrix == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 162; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } tmp_called_instance_13 = var_sims_matrix; CHECK_OBJECT(var_sim_i2t); tmp_args_element_name_15 = var_sim_i2t; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 162; tmp_call_result_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_13, mod_consts[86], tmp_args_element_name_15); if (tmp_call_result_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 162; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } Py_DECREF(tmp_call_result_7); } if (CONSIDER_THREADING() == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 159; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_6; } goto loop_start_3; loop_end_3:; goto try_end_7; // Exception handler code: try_except_handler_6:; exception_keeper_type_7 = exception_type; exception_keeper_value_7 = exception_value; exception_keeper_tb_7 = exception_tb; exception_keeper_lineno_7 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_for_loop_3__iter_value); tmp_for_loop_3__iter_value = NULL; Py_XDECREF(tmp_for_loop_3__for_iterator); tmp_for_loop_3__for_iterator = NULL; // Re-raise. exception_type = exception_keeper_type_7; exception_value = exception_keeper_value_7; exception_tb = exception_keeper_tb_7; exception_lineno = exception_keeper_lineno_7; goto frame_exception_exit_1; // End of try: try_end_7:; Py_XDECREF(tmp_for_loop_3__iter_value); tmp_for_loop_3__iter_value = NULL; Py_XDECREF(tmp_for_loop_3__for_iterator); tmp_for_loop_3__for_iterator = NULL; { PyObject *tmp_assign_source_47; PyObject *tmp_called_name_16; PyObject *tmp_expression_name_22; PyObject *tmp_args_name_8; PyObject *tmp_tuple_element_8; PyObject *tmp_kwargs_name_9; tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_22 == NULL)) { tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_22 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 163; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[107]); if (tmp_called_name_16 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 163; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_sims_matrix == NULL) { Py_DECREF(tmp_called_name_16); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 163; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_8 = var_sims_matrix; tmp_args_name_8 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_8); tmp_kwargs_name_9 = PyDict_Copy(mod_consts[93]); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 163; tmp_assign_source_47 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_8, tmp_kwargs_name_9); Py_DECREF(tmp_called_name_16); Py_DECREF(tmp_args_name_8); Py_DECREF(tmp_kwargs_name_9); if (tmp_assign_source_47 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 163; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_sims_matrix; var_sims_matrix = tmp_assign_source_47; Py_XDECREF(old); } } { PyObject *tmp_assign_source_48; PyObject *tmp_called_name_17; PyObject *tmp_expression_name_23; PyObject *tmp_called_name_18; PyObject *tmp_expression_name_24; PyObject *tmp_args_element_name_16; PyObject *tmp_tuple_element_9; PyObject *tmp_len_arg_2; PyObject *tmp_expression_name_25; PyObject *tmp_expression_name_26; PyObject *tmp_args_element_name_17; PyObject *tmp_args_element_name_18; PyObject *tmp_expression_name_27; tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_24 == NULL)) { tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_24 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 165; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[108]); if (tmp_called_name_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 165; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (par_data_loader == NULL) { Py_DECREF(tmp_called_name_18); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_26 = par_data_loader; tmp_expression_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[71]); if (tmp_expression_name_25 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_18); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_len_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[95]); Py_DECREF(tmp_expression_name_25); if (tmp_len_arg_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_18); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_9 = BUILTIN_LEN(tmp_len_arg_2); Py_DECREF(tmp_len_arg_2); if (tmp_tuple_element_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_18); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_16 = PyTuple_New(2); { PyObject *tmp_len_arg_3; PyTuple_SET_ITEM(tmp_args_element_name_16, 0, tmp_tuple_element_9); if (var_texts == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_1; } tmp_len_arg_3 = var_texts; tmp_tuple_element_9 = BUILTIN_LEN(tmp_len_arg_3); if (tmp_tuple_element_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 166; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_1; } PyTuple_SET_ITEM(tmp_args_element_name_16, 1, tmp_tuple_element_9); } goto tuple_build_noexception_1; // Exception handling pass through code for tuple_build: tuple_build_exception_1:; Py_DECREF(tmp_called_name_18); Py_DECREF(tmp_args_element_name_16); goto frame_exception_exit_1; // Finished with no exception for tuple_build: tuple_build_noexception_1:; tmp_args_element_name_17 = mod_consts[109]; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 165; { PyObject *call_args[] = {tmp_args_element_name_16, tmp_args_element_name_17}; tmp_expression_name_23 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_18, call_args); } Py_DECREF(tmp_called_name_18); Py_DECREF(tmp_args_element_name_16); if (tmp_expression_name_23 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 165; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[80]); Py_DECREF(tmp_expression_name_23); if (tmp_called_name_17 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 165; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (par_model == NULL) { Py_DECREF(tmp_called_name_17); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 167; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_27 = par_model; tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[6]); if (tmp_args_element_name_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_17); exception_lineno = 167; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 165; tmp_assign_source_48 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_17, tmp_args_element_name_18); Py_DECREF(tmp_called_name_17); Py_DECREF(tmp_args_element_name_18); if (tmp_assign_source_48 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 165; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_score_matrix_i2t == NULL); var_score_matrix_i2t = tmp_assign_source_48; } { PyObject *tmp_assign_source_49; PyObject *tmp_called_instance_14; tmp_called_instance_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); if (unlikely(tmp_called_instance_14 == NULL)) { tmp_called_instance_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); } if (tmp_called_instance_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 169; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 169; tmp_assign_source_49 = CALL_METHOD_NO_ARGS(tmp_called_instance_14, mod_consts[111]); if (tmp_assign_source_49 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 169; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_num_tasks == NULL); var_num_tasks = tmp_assign_source_49; } { PyObject *tmp_assign_source_50; PyObject *tmp_called_instance_15; tmp_called_instance_15 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); if (unlikely(tmp_called_instance_15 == NULL)) { tmp_called_instance_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); } if (tmp_called_instance_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 170; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 170; tmp_assign_source_50 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[112]); if (tmp_assign_source_50 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 170; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_rank == NULL); var_rank = tmp_assign_source_50; } { PyObject *tmp_assign_source_51; PyObject *tmp_left_name_3; PyObject *tmp_left_name_4; PyObject *tmp_called_instance_16; PyObject *tmp_right_name_3; PyObject *tmp_right_name_4; CHECK_OBJECT(var_sims_matrix); tmp_called_instance_16 = var_sims_matrix; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 171; tmp_left_name_4 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_16, mod_consts[113], &PyTuple_GET_ITEM(mod_consts[105], 0) ); if (tmp_left_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 171; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_num_tasks); tmp_right_name_3 = var_num_tasks; tmp_left_name_3 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_3); Py_DECREF(tmp_left_name_4); if (tmp_left_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 171; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_right_name_4 = mod_consts[25]; tmp_assign_source_51 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_4); Py_DECREF(tmp_left_name_3); if (tmp_assign_source_51 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 171; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_step == NULL); var_step = tmp_assign_source_51; } { PyObject *tmp_assign_source_52; PyObject *tmp_left_name_5; PyObject *tmp_right_name_5; CHECK_OBJECT(var_rank); tmp_left_name_5 = var_rank; CHECK_OBJECT(var_step); tmp_right_name_5 = var_step; tmp_assign_source_52 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); if (tmp_assign_source_52 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 172; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_start == NULL); var_start = tmp_assign_source_52; } { PyObject *tmp_assign_source_53; PyObject *tmp_called_name_19; PyObject *tmp_args_element_name_19; PyObject *tmp_called_instance_17; PyObject *tmp_args_element_name_20; PyObject *tmp_left_name_6; PyObject *tmp_right_name_6; tmp_called_name_19 = LOOKUP_BUILTIN(mod_consts[76]); assert(tmp_called_name_19 != NULL); if (var_sims_matrix == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 173; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_17 = var_sims_matrix; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 173; tmp_args_element_name_19 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_17, mod_consts[113], &PyTuple_GET_ITEM(mod_consts[105], 0) ); if (tmp_args_element_name_19 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 173; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_start); tmp_left_name_6 = var_start; if (var_step == NULL) { Py_DECREF(tmp_args_element_name_19); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 173; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_right_name_6 = var_step; tmp_args_element_name_20 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); if (tmp_args_element_name_20 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_args_element_name_19); exception_lineno = 173; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 173; { PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; tmp_assign_source_53 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_19, call_args); } Py_DECREF(tmp_args_element_name_19); Py_DECREF(tmp_args_element_name_20); if (tmp_assign_source_53 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 173; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_end == NULL); var_end = tmp_assign_source_53; } { PyObject *tmp_assign_source_54; PyObject *tmp_iter_arg_6; PyObject *tmp_called_name_20; PyObject *tmp_args_element_name_21; PyObject *tmp_called_name_21; PyObject *tmp_expression_name_28; PyObject *tmp_args_element_name_22; PyObject *tmp_expression_name_29; PyObject *tmp_subscript_name_3; PyObject *tmp_start_name_2; PyObject *tmp_stop_name_2; PyObject *tmp_args_element_name_23; PyObject *tmp_args_element_name_24; tmp_called_name_20 = (PyObject *)&PyEnum_Type; CHECK_OBJECT(var_metric_logger); tmp_expression_name_28 = var_metric_logger; tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[115]); if (tmp_called_name_21 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 176; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_sims_matrix == NULL) { Py_DECREF(tmp_called_name_21); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 176; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_29 = var_sims_matrix; if (var_start == NULL) { Py_DECREF(tmp_called_name_21); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 176; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_start_name_2 = var_start; CHECK_OBJECT(var_end); tmp_stop_name_2 = var_end; tmp_subscript_name_3 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); assert(!(tmp_subscript_name_3 == NULL)); tmp_args_element_name_22 = LOOKUP_SUBSCRIPT(tmp_expression_name_29, tmp_subscript_name_3); Py_DECREF(tmp_subscript_name_3); if (tmp_args_element_name_22 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_21); exception_lineno = 176; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_23 = mod_consts[117]; CHECK_OBJECT(var_header); tmp_args_element_name_24 = var_header; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 176; { PyObject *call_args[] = {tmp_args_element_name_22, tmp_args_element_name_23, tmp_args_element_name_24}; tmp_args_element_name_21 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_21, call_args); } Py_DECREF(tmp_called_name_21); Py_DECREF(tmp_args_element_name_22); if (tmp_args_element_name_21 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 176; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 175; tmp_iter_arg_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_21); Py_DECREF(tmp_args_element_name_21); if (tmp_iter_arg_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 175; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_assign_source_54 = MAKE_ITERATOR(tmp_iter_arg_6); Py_DECREF(tmp_iter_arg_6); if (tmp_assign_source_54 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 175; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(tmp_for_loop_4__for_iterator == NULL); tmp_for_loop_4__for_iterator = tmp_assign_source_54; } // Tried code: loop_start_4:; { PyObject *tmp_next_source_4; PyObject *tmp_assign_source_55; CHECK_OBJECT(tmp_for_loop_4__for_iterator); tmp_next_source_4 = tmp_for_loop_4__for_iterator; tmp_assign_source_55 = ITERATOR_NEXT(tmp_next_source_4); if (tmp_assign_source_55 == NULL) { if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { goto loop_end_4; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 175; goto try_except_handler_9; } } { PyObject *old = tmp_for_loop_4__iter_value; tmp_for_loop_4__iter_value = tmp_assign_source_55; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_56; PyObject *tmp_iter_arg_7; CHECK_OBJECT(tmp_for_loop_4__iter_value); tmp_iter_arg_7 = tmp_for_loop_4__iter_value; tmp_assign_source_56 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_7); if (tmp_assign_source_56 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 175; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_10; } { PyObject *old = tmp_tuple_unpack_3__source_iter; tmp_tuple_unpack_3__source_iter = tmp_assign_source_56; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_57; PyObject *tmp_unpack_5; CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; tmp_assign_source_57 = UNPACK_NEXT(tmp_unpack_5, 0, 2); if (tmp_assign_source_57 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 175; goto try_except_handler_11; } { PyObject *old = tmp_tuple_unpack_3__element_1; tmp_tuple_unpack_3__element_1 = tmp_assign_source_57; Py_XDECREF(old); } } { PyObject *tmp_assign_source_58; PyObject *tmp_unpack_6; CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; tmp_assign_source_58 = UNPACK_NEXT(tmp_unpack_6, 1, 2); if (tmp_assign_source_58 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 175; goto try_except_handler_11; } { PyObject *old = tmp_tuple_unpack_3__element_2; tmp_tuple_unpack_3__element_2 = tmp_assign_source_58; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_3; CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 175; goto try_except_handler_11; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 175; goto try_except_handler_11; } } goto try_end_8; // Exception handler code: try_except_handler_11:; exception_keeper_type_8 = exception_type; exception_keeper_value_8 = exception_value; exception_keeper_tb_8 = exception_tb; exception_keeper_lineno_8 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_3__source_iter); tmp_tuple_unpack_3__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_8; exception_value = exception_keeper_value_8; exception_tb = exception_keeper_tb_8; exception_lineno = exception_keeper_lineno_8; goto try_except_handler_10; // End of try: try_end_8:; goto try_end_9; // Exception handler code: try_except_handler_10:; exception_keeper_type_9 = exception_type; exception_keeper_value_9 = exception_value; exception_keeper_tb_9 = exception_tb; exception_keeper_lineno_9 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_3__element_1); tmp_tuple_unpack_3__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_3__element_2); tmp_tuple_unpack_3__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_9; exception_value = exception_keeper_value_9; exception_tb = exception_keeper_tb_9; exception_lineno = exception_keeper_lineno_9; goto try_except_handler_9; // End of try: try_end_9:; Py_XDECREF(tmp_tuple_unpack_3__source_iter); tmp_tuple_unpack_3__source_iter = NULL; { PyObject *tmp_assign_source_59; CHECK_OBJECT(tmp_tuple_unpack_3__element_1); tmp_assign_source_59 = tmp_tuple_unpack_3__element_1; { PyObject *old = var_i; var_i = tmp_assign_source_59; Py_INCREF(var_i); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_3__element_1); tmp_tuple_unpack_3__element_1 = NULL; { PyObject *tmp_assign_source_60; CHECK_OBJECT(tmp_tuple_unpack_3__element_2); tmp_assign_source_60 = tmp_tuple_unpack_3__element_2; { PyObject *old = var_sims; var_sims = tmp_assign_source_60; Py_INCREF(var_sims); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_3__element_2); tmp_tuple_unpack_3__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_3__element_1); tmp_tuple_unpack_3__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_3__element_2); tmp_tuple_unpack_3__element_2 = NULL; // Tried code: { PyObject *tmp_assign_source_61; PyObject *tmp_iter_arg_8; PyObject *tmp_called_name_22; PyObject *tmp_expression_name_30; PyObject *tmp_kwargs_name_10; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; CHECK_OBJECT(var_sims); tmp_expression_name_30 = var_sims; tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[118]); if (tmp_called_name_22 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 178; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_12; } tmp_dict_key_1 = mod_consts[119]; if (var_k_test == NULL) { Py_DECREF(tmp_called_name_22); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 178; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_12; } tmp_dict_value_1 = var_k_test; tmp_kwargs_name_10 = _PyDict_NewPresized( 2 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_10, tmp_dict_key_1, tmp_dict_value_1); assert(!(tmp_res != 0)); tmp_dict_key_1 = mod_consts[121]; tmp_dict_value_1 = mod_consts[74]; tmp_res = PyDict_SetItem(tmp_kwargs_name_10, tmp_dict_key_1, tmp_dict_value_1); assert(!(tmp_res != 0)); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 178; tmp_iter_arg_8 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_22, tmp_kwargs_name_10); Py_DECREF(tmp_called_name_22); Py_DECREF(tmp_kwargs_name_10); if (tmp_iter_arg_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 178; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_12; } tmp_assign_source_61 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_8); Py_DECREF(tmp_iter_arg_8); if (tmp_assign_source_61 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 178; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_12; } { PyObject *old = tmp_tuple_unpack_4__source_iter; tmp_tuple_unpack_4__source_iter = tmp_assign_source_61; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_62; PyObject *tmp_unpack_7; CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); tmp_unpack_7 = tmp_tuple_unpack_4__source_iter; tmp_assign_source_62 = UNPACK_NEXT(tmp_unpack_7, 0, 2); if (tmp_assign_source_62 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 178; goto try_except_handler_13; } { PyObject *old = tmp_tuple_unpack_4__element_1; tmp_tuple_unpack_4__element_1 = tmp_assign_source_62; Py_XDECREF(old); } } { PyObject *tmp_assign_source_63; PyObject *tmp_unpack_8; CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); tmp_unpack_8 = tmp_tuple_unpack_4__source_iter; tmp_assign_source_63 = UNPACK_NEXT(tmp_unpack_8, 1, 2); if (tmp_assign_source_63 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 178; goto try_except_handler_13; } { PyObject *old = tmp_tuple_unpack_4__element_2; tmp_tuple_unpack_4__element_2 = tmp_assign_source_63; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_4; CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 178; goto try_except_handler_13; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 178; goto try_except_handler_13; } } goto try_end_10; // Exception handler code: try_except_handler_13:; exception_keeper_type_10 = exception_type; exception_keeper_value_10 = exception_value; exception_keeper_tb_10 = exception_tb; exception_keeper_lineno_10 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_4__source_iter); tmp_tuple_unpack_4__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_10; exception_value = exception_keeper_value_10; exception_tb = exception_keeper_tb_10; exception_lineno = exception_keeper_lineno_10; goto try_except_handler_12; // End of try: try_end_10:; goto try_end_11; // Exception handler code: try_except_handler_12:; exception_keeper_type_11 = exception_type; exception_keeper_value_11 = exception_value; exception_keeper_tb_11 = exception_tb; exception_keeper_lineno_11 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_4__element_1); tmp_tuple_unpack_4__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_4__element_2); tmp_tuple_unpack_4__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_11; exception_value = exception_keeper_value_11; exception_tb = exception_keeper_tb_11; exception_lineno = exception_keeper_lineno_11; goto try_except_handler_9; // End of try: try_end_11:; Py_XDECREF(tmp_tuple_unpack_4__source_iter); tmp_tuple_unpack_4__source_iter = NULL; { PyObject *tmp_assign_source_64; CHECK_OBJECT(tmp_tuple_unpack_4__element_1); tmp_assign_source_64 = tmp_tuple_unpack_4__element_1; { PyObject *old = var_topk_sim; var_topk_sim = tmp_assign_source_64; Py_INCREF(var_topk_sim); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_4__element_1); tmp_tuple_unpack_4__element_1 = NULL; { PyObject *tmp_assign_source_65; CHECK_OBJECT(tmp_tuple_unpack_4__element_2); tmp_assign_source_65 = tmp_tuple_unpack_4__element_2; { PyObject *old = var_topk_idx; var_topk_idx = tmp_assign_source_65; Py_INCREF(var_topk_idx); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_4__element_2); tmp_tuple_unpack_4__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_4__element_1); tmp_tuple_unpack_4__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_4__element_2); tmp_tuple_unpack_4__element_2 = NULL; { PyObject *tmp_assign_source_66; PyObject *tmp_called_name_23; PyObject *tmp_expression_name_31; PyObject *tmp_called_name_24; PyObject *tmp_expression_name_32; PyObject *tmp_expression_name_33; PyObject *tmp_subscript_name_4; PyObject *tmp_left_name_7; PyObject *tmp_right_name_7; PyObject *tmp_args_element_name_25; PyObject *tmp_args_element_name_26; PyObject *tmp_args_element_name_27; PyObject *tmp_args_element_name_28; PyObject *tmp_expression_name_34; if (var_vit_feats == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_expression_name_33 = var_vit_feats; if (var_start == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_left_name_7 = var_start; CHECK_OBJECT(var_i); tmp_right_name_7 = var_i; tmp_subscript_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); if (tmp_subscript_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_expression_name_32 = LOOKUP_SUBSCRIPT(tmp_expression_name_33, tmp_subscript_name_4); Py_DECREF(tmp_subscript_name_4); if (tmp_expression_name_32 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[122]); Py_DECREF(tmp_expression_name_32); if (tmp_called_name_24 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } if (var_k_test == NULL) { Py_DECREF(tmp_called_name_24); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_args_element_name_25 = var_k_test; tmp_args_element_name_26 = mod_consts[25]; tmp_args_element_name_27 = mod_consts[25]; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 179; { PyObject *call_args[] = {tmp_args_element_name_25, tmp_args_element_name_26, tmp_args_element_name_27}; tmp_expression_name_31 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_24, call_args); } Py_DECREF(tmp_called_name_24); if (tmp_expression_name_31 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[80]); Py_DECREF(tmp_expression_name_31); if (tmp_called_name_23 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } if (par_model == NULL) { Py_DECREF(tmp_called_name_23); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_expression_name_34 = par_model; tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[6]); if (tmp_args_element_name_28 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_23); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 179; tmp_assign_source_66 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_23, tmp_args_element_name_28); Py_DECREF(tmp_called_name_23); Py_DECREF(tmp_args_element_name_28); if (tmp_assign_source_66 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 179; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } { PyObject *old = var_image_inputs; var_image_inputs = tmp_assign_source_66; Py_XDECREF(old); } } { PyObject *tmp_assign_source_67; PyObject *tmp_called_instance_18; PyObject *tmp_called_name_25; PyObject *tmp_expression_name_35; PyObject *tmp_kwargs_name_11; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 180; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_expression_name_35 = par_model; tmp_called_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[123]); if (tmp_called_name_25 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 180; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_dict_key_2 = mod_consts[124]; CHECK_OBJECT(var_image_inputs); tmp_dict_value_2 = var_image_inputs; tmp_kwargs_name_11 = _PyDict_NewPresized( 3 ); { PyObject *tmp_expression_name_36; PyObject *tmp_subscript_name_5; PyObject *tmp_expression_name_37; PyObject *tmp_subscript_name_6; tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); assert(!(tmp_res != 0)); tmp_dict_key_2 = mod_consts[87]; if (var_text_ids == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 182; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_1; } tmp_expression_name_36 = var_text_ids; CHECK_OBJECT(var_topk_idx); tmp_subscript_name_5 = var_topk_idx; tmp_dict_value_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_36, tmp_subscript_name_5); if (tmp_dict_value_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 182; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_1; } tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); Py_DECREF(tmp_dict_value_2); assert(!(tmp_res != 0)); tmp_dict_key_2 = mod_consts[90]; if (var_text_atts == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 183; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_1; } tmp_expression_name_37 = var_text_atts; CHECK_OBJECT(var_topk_idx); tmp_subscript_name_6 = var_topk_idx; tmp_dict_value_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_37, tmp_subscript_name_6); if (tmp_dict_value_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 183; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_1; } tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); Py_DECREF(tmp_dict_value_2); assert(!(tmp_res != 0)); } goto dict_build_noexception_1; // Exception handling pass through code for dict_build: dict_build_exception_1:; Py_DECREF(tmp_called_name_25); Py_DECREF(tmp_kwargs_name_11); goto try_except_handler_9; // Finished with no exception for dict_build: dict_build_noexception_1:; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 180; tmp_called_instance_18 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_25, tmp_kwargs_name_11); Py_DECREF(tmp_called_name_25); Py_DECREF(tmp_kwargs_name_11); if (tmp_called_instance_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 180; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 180; tmp_assign_source_67 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[125]); Py_DECREF(tmp_called_instance_18); if (tmp_assign_source_67 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 180; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } { PyObject *old = var_score; var_score = tmp_assign_source_67; Py_XDECREF(old); } } { PyObject *tmp_ass_subvalue_1; PyObject *tmp_left_name_8; PyObject *tmp_right_name_8; PyObject *tmp_ass_subscribed_1; PyObject *tmp_ass_subscript_1; PyObject *tmp_tuple_element_10; PyObject *tmp_left_name_9; PyObject *tmp_right_name_9; CHECK_OBJECT(var_score); tmp_left_name_8 = var_score; CHECK_OBJECT(var_topk_sim); tmp_right_name_8 = var_topk_sim; tmp_ass_subvalue_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); if (tmp_ass_subvalue_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } if (var_score_matrix_i2t == NULL) { Py_DECREF(tmp_ass_subvalue_1); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_ass_subscribed_1 = var_score_matrix_i2t; if (var_start == NULL) { Py_DECREF(tmp_ass_subvalue_1); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_left_name_9 = var_start; if (var_i == NULL) { Py_DECREF(tmp_ass_subvalue_1); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_right_name_9 = var_i; tmp_tuple_element_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_9, tmp_right_name_9); if (tmp_tuple_element_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_ass_subvalue_1); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } tmp_ass_subscript_1 = PyTuple_New(2); PyTuple_SET_ITEM(tmp_ass_subscript_1, 0, tmp_tuple_element_10); CHECK_OBJECT(var_topk_idx); tmp_tuple_element_10 = var_topk_idx; PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_10); tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); Py_DECREF(tmp_ass_subscript_1); Py_DECREF(tmp_ass_subvalue_1); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 185; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } } if (CONSIDER_THREADING() == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 175; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_9; } goto loop_start_4; loop_end_4:; goto try_end_12; // Exception handler code: try_except_handler_9:; exception_keeper_type_12 = exception_type; exception_keeper_value_12 = exception_value; exception_keeper_tb_12 = exception_tb; exception_keeper_lineno_12 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_for_loop_4__iter_value); tmp_for_loop_4__iter_value = NULL; Py_XDECREF(tmp_for_loop_4__for_iterator); tmp_for_loop_4__for_iterator = NULL; // Re-raise. exception_type = exception_keeper_type_12; exception_value = exception_keeper_value_12; exception_tb = exception_keeper_tb_12; exception_lineno = exception_keeper_lineno_12; goto frame_exception_exit_1; // End of try: try_end_12:; Py_XDECREF(tmp_for_loop_4__iter_value); tmp_for_loop_4__iter_value = NULL; Py_XDECREF(tmp_for_loop_4__for_iterator); tmp_for_loop_4__for_iterator = NULL; { PyObject *tmp_assign_source_68; PyObject *tmp_called_instance_19; if (var_sims_matrix == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 187; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_19 = var_sims_matrix; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 187; tmp_assign_source_68 = CALL_METHOD_NO_ARGS(tmp_called_instance_19, mod_consts[103]); if (tmp_assign_source_68 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 187; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_sims_matrix; var_sims_matrix = tmp_assign_source_68; Py_XDECREF(old); } } { PyObject *tmp_assign_source_69; PyObject *tmp_called_name_26; PyObject *tmp_expression_name_38; PyObject *tmp_called_name_27; PyObject *tmp_expression_name_39; PyObject *tmp_args_element_name_29; PyObject *tmp_tuple_element_11; PyObject *tmp_len_arg_4; PyObject *tmp_args_element_name_30; PyObject *tmp_args_element_name_31; PyObject *tmp_expression_name_42; tmp_expression_name_39 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_39 == NULL)) { tmp_expression_name_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_39 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 188; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[108]); if (tmp_called_name_27 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 188; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_texts == NULL) { Py_DECREF(tmp_called_name_27); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_len_arg_4 = var_texts; tmp_tuple_element_11 = BUILTIN_LEN(tmp_len_arg_4); if (tmp_tuple_element_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_27); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_29 = PyTuple_New(2); { PyObject *tmp_len_arg_5; PyObject *tmp_expression_name_40; PyObject *tmp_expression_name_41; PyTuple_SET_ITEM(tmp_args_element_name_29, 0, tmp_tuple_element_11); if (par_data_loader == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_2; } tmp_expression_name_41 = par_data_loader; tmp_expression_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[71]); if (tmp_expression_name_40 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_2; } tmp_len_arg_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[95]); Py_DECREF(tmp_expression_name_40); if (tmp_len_arg_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_2; } tmp_tuple_element_11 = BUILTIN_LEN(tmp_len_arg_5); Py_DECREF(tmp_len_arg_5); if (tmp_tuple_element_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 189; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_2; } PyTuple_SET_ITEM(tmp_args_element_name_29, 1, tmp_tuple_element_11); } goto tuple_build_noexception_2; // Exception handling pass through code for tuple_build: tuple_build_exception_2:; Py_DECREF(tmp_called_name_27); Py_DECREF(tmp_args_element_name_29); goto frame_exception_exit_1; // Finished with no exception for tuple_build: tuple_build_noexception_2:; tmp_args_element_name_30 = mod_consts[109]; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 188; { PyObject *call_args[] = {tmp_args_element_name_29, tmp_args_element_name_30}; tmp_expression_name_38 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_27, call_args); } Py_DECREF(tmp_called_name_27); Py_DECREF(tmp_args_element_name_29); if (tmp_expression_name_38 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 188; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[80]); Py_DECREF(tmp_expression_name_38); if (tmp_called_name_26 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 188; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (par_model == NULL) { Py_DECREF(tmp_called_name_26); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 190; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_42 = par_model; tmp_args_element_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[6]); if (tmp_args_element_name_31 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_26); exception_lineno = 190; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 188; tmp_assign_source_69 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_26, tmp_args_element_name_31); Py_DECREF(tmp_called_name_26); Py_DECREF(tmp_args_element_name_31); if (tmp_assign_source_69 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 188; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_score_matrix_t2i == NULL); var_score_matrix_t2i = tmp_assign_source_69; } { PyObject *tmp_assign_source_70; PyObject *tmp_left_name_10; PyObject *tmp_left_name_11; PyObject *tmp_called_instance_20; PyObject *tmp_right_name_10; PyObject *tmp_right_name_11; CHECK_OBJECT(var_sims_matrix); tmp_called_instance_20 = var_sims_matrix; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 192; tmp_left_name_11 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_20, mod_consts[113], &PyTuple_GET_ITEM(mod_consts[105], 0) ); if (tmp_left_name_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 192; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_num_tasks == NULL) { Py_DECREF(tmp_left_name_11); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 192; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_right_name_10 = var_num_tasks; tmp_left_name_10 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_10); Py_DECREF(tmp_left_name_11); if (tmp_left_name_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 192; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_right_name_11 = mod_consts[25]; tmp_assign_source_70 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_10, tmp_right_name_11); Py_DECREF(tmp_left_name_10); if (tmp_assign_source_70 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 192; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_step; var_step = tmp_assign_source_70; Py_XDECREF(old); } } { PyObject *tmp_assign_source_71; PyObject *tmp_left_name_12; PyObject *tmp_right_name_12; if (var_rank == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[129]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 193; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_left_name_12 = var_rank; CHECK_OBJECT(var_step); tmp_right_name_12 = var_step; tmp_assign_source_71 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_12, tmp_right_name_12); if (tmp_assign_source_71 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 193; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_start; var_start = tmp_assign_source_71; Py_XDECREF(old); } } { PyObject *tmp_assign_source_72; PyObject *tmp_called_name_28; PyObject *tmp_args_element_name_32; PyObject *tmp_called_instance_21; PyObject *tmp_args_element_name_33; PyObject *tmp_left_name_13; PyObject *tmp_right_name_13; tmp_called_name_28 = LOOKUP_BUILTIN(mod_consts[76]); assert(tmp_called_name_28 != NULL); if (var_sims_matrix == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 194; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_21 = var_sims_matrix; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 194; tmp_args_element_name_32 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_21, mod_consts[113], &PyTuple_GET_ITEM(mod_consts[105], 0) ); if (tmp_args_element_name_32 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 194; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_start); tmp_left_name_13 = var_start; if (var_step == NULL) { Py_DECREF(tmp_args_element_name_32); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 194; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_right_name_13 = var_step; tmp_args_element_name_33 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_13, tmp_right_name_13); if (tmp_args_element_name_33 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_args_element_name_32); exception_lineno = 194; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 194; { PyObject *call_args[] = {tmp_args_element_name_32, tmp_args_element_name_33}; tmp_assign_source_72 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_28, call_args); } Py_DECREF(tmp_args_element_name_32); Py_DECREF(tmp_args_element_name_33); if (tmp_assign_source_72 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 194; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_end; assert(old != NULL); var_end = tmp_assign_source_72; Py_DECREF(old); } } { PyObject *tmp_assign_source_73; PyObject *tmp_iter_arg_9; PyObject *tmp_called_name_29; PyObject *tmp_args_element_name_34; PyObject *tmp_called_name_30; PyObject *tmp_expression_name_43; PyObject *tmp_args_element_name_35; PyObject *tmp_expression_name_44; PyObject *tmp_subscript_name_7; PyObject *tmp_start_name_3; PyObject *tmp_stop_name_3; PyObject *tmp_args_element_name_36; PyObject *tmp_args_element_name_37; tmp_called_name_29 = (PyObject *)&PyEnum_Type; if (var_metric_logger == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[130]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_43 = var_metric_logger; tmp_called_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[115]); if (tmp_called_name_30 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_sims_matrix == NULL) { Py_DECREF(tmp_called_name_30); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_44 = var_sims_matrix; if (var_start == NULL) { Py_DECREF(tmp_called_name_30); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_start_name_3 = var_start; CHECK_OBJECT(var_end); tmp_stop_name_3 = var_end; tmp_subscript_name_7 = MAKE_SLICEOBJ2(tmp_start_name_3, tmp_stop_name_3); assert(!(tmp_subscript_name_7 == NULL)); tmp_args_element_name_35 = LOOKUP_SUBSCRIPT(tmp_expression_name_44, tmp_subscript_name_7); Py_DECREF(tmp_subscript_name_7); if (tmp_args_element_name_35 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_30); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_36 = mod_consts[117]; if (var_header == NULL) { Py_DECREF(tmp_called_name_30); Py_DECREF(tmp_args_element_name_35); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[131]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_37 = var_header; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 197; { PyObject *call_args[] = {tmp_args_element_name_35, tmp_args_element_name_36, tmp_args_element_name_37}; tmp_args_element_name_34 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_30, call_args); } Py_DECREF(tmp_called_name_30); Py_DECREF(tmp_args_element_name_35); if (tmp_args_element_name_34 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 197; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 196; tmp_iter_arg_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_29, tmp_args_element_name_34); Py_DECREF(tmp_args_element_name_34); if (tmp_iter_arg_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 196; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_assign_source_73 = MAKE_ITERATOR(tmp_iter_arg_9); Py_DECREF(tmp_iter_arg_9); if (tmp_assign_source_73 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 196; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(tmp_for_loop_5__for_iterator == NULL); tmp_for_loop_5__for_iterator = tmp_assign_source_73; } // Tried code: loop_start_5:; { PyObject *tmp_next_source_5; PyObject *tmp_assign_source_74; CHECK_OBJECT(tmp_for_loop_5__for_iterator); tmp_next_source_5 = tmp_for_loop_5__for_iterator; tmp_assign_source_74 = ITERATOR_NEXT(tmp_next_source_5); if (tmp_assign_source_74 == NULL) { if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { goto loop_end_5; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 196; goto try_except_handler_14; } } { PyObject *old = tmp_for_loop_5__iter_value; tmp_for_loop_5__iter_value = tmp_assign_source_74; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_75; PyObject *tmp_iter_arg_10; CHECK_OBJECT(tmp_for_loop_5__iter_value); tmp_iter_arg_10 = tmp_for_loop_5__iter_value; tmp_assign_source_75 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_10); if (tmp_assign_source_75 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 196; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_15; } { PyObject *old = tmp_tuple_unpack_5__source_iter; tmp_tuple_unpack_5__source_iter = tmp_assign_source_75; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_76; PyObject *tmp_unpack_9; CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); tmp_unpack_9 = tmp_tuple_unpack_5__source_iter; tmp_assign_source_76 = UNPACK_NEXT(tmp_unpack_9, 0, 2); if (tmp_assign_source_76 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 196; goto try_except_handler_16; } { PyObject *old = tmp_tuple_unpack_5__element_1; tmp_tuple_unpack_5__element_1 = tmp_assign_source_76; Py_XDECREF(old); } } { PyObject *tmp_assign_source_77; PyObject *tmp_unpack_10; CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); tmp_unpack_10 = tmp_tuple_unpack_5__source_iter; tmp_assign_source_77 = UNPACK_NEXT(tmp_unpack_10, 1, 2); if (tmp_assign_source_77 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 196; goto try_except_handler_16; } { PyObject *old = tmp_tuple_unpack_5__element_2; tmp_tuple_unpack_5__element_2 = tmp_assign_source_77; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_5; CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); tmp_iterator_name_5 = tmp_tuple_unpack_5__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_5); assert(HAS_ITERNEXT(tmp_iterator_name_5)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_5)->tp_iternext)(tmp_iterator_name_5); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 196; goto try_except_handler_16; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 196; goto try_except_handler_16; } } goto try_end_13; // Exception handler code: try_except_handler_16:; exception_keeper_type_13 = exception_type; exception_keeper_value_13 = exception_value; exception_keeper_tb_13 = exception_tb; exception_keeper_lineno_13 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_5__source_iter); tmp_tuple_unpack_5__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_13; exception_value = exception_keeper_value_13; exception_tb = exception_keeper_tb_13; exception_lineno = exception_keeper_lineno_13; goto try_except_handler_15; // End of try: try_end_13:; goto try_end_14; // Exception handler code: try_except_handler_15:; exception_keeper_type_14 = exception_type; exception_keeper_value_14 = exception_value; exception_keeper_tb_14 = exception_tb; exception_keeper_lineno_14 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_5__element_1); tmp_tuple_unpack_5__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_5__element_2); tmp_tuple_unpack_5__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_14; exception_value = exception_keeper_value_14; exception_tb = exception_keeper_tb_14; exception_lineno = exception_keeper_lineno_14; goto try_except_handler_14; // End of try: try_end_14:; Py_XDECREF(tmp_tuple_unpack_5__source_iter); tmp_tuple_unpack_5__source_iter = NULL; { PyObject *tmp_assign_source_78; CHECK_OBJECT(tmp_tuple_unpack_5__element_1); tmp_assign_source_78 = tmp_tuple_unpack_5__element_1; { PyObject *old = var_i; var_i = tmp_assign_source_78; Py_INCREF(var_i); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_5__element_1); tmp_tuple_unpack_5__element_1 = NULL; { PyObject *tmp_assign_source_79; CHECK_OBJECT(tmp_tuple_unpack_5__element_2); tmp_assign_source_79 = tmp_tuple_unpack_5__element_2; { PyObject *old = var_sims; var_sims = tmp_assign_source_79; Py_INCREF(var_sims); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_5__element_2); tmp_tuple_unpack_5__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_5__element_1); tmp_tuple_unpack_5__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_5__element_2); tmp_tuple_unpack_5__element_2 = NULL; // Tried code: { PyObject *tmp_assign_source_80; PyObject *tmp_iter_arg_11; PyObject *tmp_called_name_31; PyObject *tmp_expression_name_45; PyObject *tmp_kwargs_name_12; PyObject *tmp_dict_key_3; PyObject *tmp_dict_value_3; CHECK_OBJECT(var_sims); tmp_expression_name_45 = var_sims; tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[118]); if (tmp_called_name_31 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 199; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_17; } tmp_dict_key_3 = mod_consts[119]; if (var_k_test == NULL) { Py_DECREF(tmp_called_name_31); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 199; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_17; } tmp_dict_value_3 = var_k_test; tmp_kwargs_name_12 = _PyDict_NewPresized( 2 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_12, tmp_dict_key_3, tmp_dict_value_3); assert(!(tmp_res != 0)); tmp_dict_key_3 = mod_consts[121]; tmp_dict_value_3 = mod_consts[74]; tmp_res = PyDict_SetItem(tmp_kwargs_name_12, tmp_dict_key_3, tmp_dict_value_3); assert(!(tmp_res != 0)); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 199; tmp_iter_arg_11 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_31, tmp_kwargs_name_12); Py_DECREF(tmp_called_name_31); Py_DECREF(tmp_kwargs_name_12); if (tmp_iter_arg_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 199; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_17; } tmp_assign_source_80 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_11); Py_DECREF(tmp_iter_arg_11); if (tmp_assign_source_80 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 199; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_17; } { PyObject *old = tmp_tuple_unpack_6__source_iter; tmp_tuple_unpack_6__source_iter = tmp_assign_source_80; Py_XDECREF(old); } } // Tried code: { PyObject *tmp_assign_source_81; PyObject *tmp_unpack_11; CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); tmp_unpack_11 = tmp_tuple_unpack_6__source_iter; tmp_assign_source_81 = UNPACK_NEXT(tmp_unpack_11, 0, 2); if (tmp_assign_source_81 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 199; goto try_except_handler_18; } { PyObject *old = tmp_tuple_unpack_6__element_1; tmp_tuple_unpack_6__element_1 = tmp_assign_source_81; Py_XDECREF(old); } } { PyObject *tmp_assign_source_82; PyObject *tmp_unpack_12; CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); tmp_unpack_12 = tmp_tuple_unpack_6__source_iter; tmp_assign_source_82 = UNPACK_NEXT(tmp_unpack_12, 1, 2); if (tmp_assign_source_82 == NULL) { if (!ERROR_OCCURRED()) { exception_type = PyExc_StopIteration; Py_INCREF(exception_type); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); } type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 199; goto try_except_handler_18; } { PyObject *old = tmp_tuple_unpack_6__element_2; tmp_tuple_unpack_6__element_2 = tmp_assign_source_82; Py_XDECREF(old); } } { PyObject *tmp_iterator_name_6; CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); tmp_iterator_name_6 = tmp_tuple_unpack_6__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT(tmp_iterator_name_6); assert(HAS_ITERNEXT(tmp_iterator_name_6)); tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_6)->tp_iternext)(tmp_iterator_name_6); if (likely(tmp_iterator_attempt == NULL)) { PyObject *error = GET_ERROR_OCCURRED(); if (error != NULL) { if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 199; goto try_except_handler_18; } } } else { Py_DECREF(tmp_iterator_attempt); exception_type = PyExc_ValueError; Py_INCREF(PyExc_ValueError); exception_value = mod_consts[97]; Py_INCREF(exception_value); exception_tb = NULL; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; exception_lineno = 199; goto try_except_handler_18; } } goto try_end_15; // Exception handler code: try_except_handler_18:; exception_keeper_type_15 = exception_type; exception_keeper_value_15 = exception_value; exception_keeper_tb_15 = exception_tb; exception_keeper_lineno_15 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_6__source_iter); tmp_tuple_unpack_6__source_iter = NULL; // Re-raise. exception_type = exception_keeper_type_15; exception_value = exception_keeper_value_15; exception_tb = exception_keeper_tb_15; exception_lineno = exception_keeper_lineno_15; goto try_except_handler_17; // End of try: try_end_15:; goto try_end_16; // Exception handler code: try_except_handler_17:; exception_keeper_type_16 = exception_type; exception_keeper_value_16 = exception_value; exception_keeper_tb_16 = exception_tb; exception_keeper_lineno_16 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_tuple_unpack_6__element_1); tmp_tuple_unpack_6__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_6__element_2); tmp_tuple_unpack_6__element_2 = NULL; // Re-raise. exception_type = exception_keeper_type_16; exception_value = exception_keeper_value_16; exception_tb = exception_keeper_tb_16; exception_lineno = exception_keeper_lineno_16; goto try_except_handler_14; // End of try: try_end_16:; Py_XDECREF(tmp_tuple_unpack_6__source_iter); tmp_tuple_unpack_6__source_iter = NULL; { PyObject *tmp_assign_source_83; CHECK_OBJECT(tmp_tuple_unpack_6__element_1); tmp_assign_source_83 = tmp_tuple_unpack_6__element_1; { PyObject *old = var_topk_sim; var_topk_sim = tmp_assign_source_83; Py_INCREF(var_topk_sim); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_6__element_1); tmp_tuple_unpack_6__element_1 = NULL; { PyObject *tmp_assign_source_84; CHECK_OBJECT(tmp_tuple_unpack_6__element_2); tmp_assign_source_84 = tmp_tuple_unpack_6__element_2; { PyObject *old = var_topk_idx; var_topk_idx = tmp_assign_source_84; Py_INCREF(var_topk_idx); Py_XDECREF(old); } } Py_XDECREF(tmp_tuple_unpack_6__element_2); tmp_tuple_unpack_6__element_2 = NULL; Py_XDECREF(tmp_tuple_unpack_6__element_1); tmp_tuple_unpack_6__element_1 = NULL; Py_XDECREF(tmp_tuple_unpack_6__element_2); tmp_tuple_unpack_6__element_2 = NULL; { PyObject *tmp_assign_source_85; PyObject *tmp_called_name_32; PyObject *tmp_expression_name_46; PyObject *tmp_expression_name_47; PyObject *tmp_subscript_name_8; PyObject *tmp_called_instance_22; PyObject *tmp_args_element_name_38; PyObject *tmp_expression_name_48; if (var_vit_feats == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_expression_name_47 = var_vit_feats; CHECK_OBJECT(var_topk_idx); tmp_called_instance_22 = var_topk_idx; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 200; tmp_subscript_name_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_22, mod_consts[101]); if (tmp_subscript_name_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_expression_name_46 = LOOKUP_SUBSCRIPT(tmp_expression_name_47, tmp_subscript_name_8); Py_DECREF(tmp_subscript_name_8); if (tmp_expression_name_46 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_called_name_32 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[80]); Py_DECREF(tmp_expression_name_46); if (tmp_called_name_32 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } if (par_model == NULL) { Py_DECREF(tmp_called_name_32); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_expression_name_48 = par_model; tmp_args_element_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[6]); if (tmp_args_element_name_38 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_32); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 200; tmp_assign_source_85 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_32, tmp_args_element_name_38); Py_DECREF(tmp_called_name_32); Py_DECREF(tmp_args_element_name_38); if (tmp_assign_source_85 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 200; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } { PyObject *old = var_image_inputs; var_image_inputs = tmp_assign_source_85; Py_XDECREF(old); } } { PyObject *tmp_assign_source_86; PyObject *tmp_called_instance_23; PyObject *tmp_called_name_33; PyObject *tmp_expression_name_49; PyObject *tmp_kwargs_name_13; PyObject *tmp_dict_key_4; PyObject *tmp_dict_value_4; if (par_model == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 201; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_expression_name_49 = par_model; tmp_called_name_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[123]); if (tmp_called_name_33 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 201; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_dict_key_4 = mod_consts[124]; CHECK_OBJECT(var_image_inputs); tmp_dict_value_4 = var_image_inputs; tmp_kwargs_name_13 = _PyDict_NewPresized( 3 ); { PyObject *tmp_called_name_34; PyObject *tmp_expression_name_50; PyObject *tmp_expression_name_51; PyObject *tmp_subscript_name_9; PyObject *tmp_left_name_14; PyObject *tmp_right_name_14; PyObject *tmp_args_element_name_39; PyObject *tmp_args_element_name_40; PyObject *tmp_called_name_35; PyObject *tmp_expression_name_52; PyObject *tmp_expression_name_53; PyObject *tmp_subscript_name_10; PyObject *tmp_left_name_15; PyObject *tmp_right_name_15; PyObject *tmp_args_element_name_41; PyObject *tmp_args_element_name_42; tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); assert(!(tmp_res != 0)); tmp_dict_key_4 = mod_consts[87]; if (var_text_ids == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_expression_name_51 = var_text_ids; if (var_start == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_left_name_14 = var_start; CHECK_OBJECT(var_i); tmp_right_name_14 = var_i; tmp_subscript_name_9 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_14, tmp_right_name_14); if (tmp_subscript_name_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_expression_name_50 = LOOKUP_SUBSCRIPT(tmp_expression_name_51, tmp_subscript_name_9); Py_DECREF(tmp_subscript_name_9); if (tmp_expression_name_50 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_called_name_34 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[122]); Py_DECREF(tmp_expression_name_50); if (tmp_called_name_34 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } if (var_k_test == NULL) { Py_DECREF(tmp_called_name_34); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_args_element_name_39 = var_k_test; tmp_args_element_name_40 = mod_consts[25]; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 203; { PyObject *call_args[] = {tmp_args_element_name_39, tmp_args_element_name_40}; tmp_dict_value_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_34, call_args); } Py_DECREF(tmp_called_name_34); if (tmp_dict_value_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 203; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); Py_DECREF(tmp_dict_value_4); assert(!(tmp_res != 0)); tmp_dict_key_4 = mod_consts[90]; if (var_text_atts == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_expression_name_53 = var_text_atts; if (var_start == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_left_name_15 = var_start; if (var_i == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_right_name_15 = var_i; tmp_subscript_name_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_15, tmp_right_name_15); if (tmp_subscript_name_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_expression_name_52 = LOOKUP_SUBSCRIPT(tmp_expression_name_53, tmp_subscript_name_10); Py_DECREF(tmp_subscript_name_10); if (tmp_expression_name_52 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_called_name_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[122]); Py_DECREF(tmp_expression_name_52); if (tmp_called_name_35 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } if (var_k_test == NULL) { Py_DECREF(tmp_called_name_35); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_args_element_name_41 = var_k_test; tmp_args_element_name_42 = mod_consts[25]; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 204; { PyObject *call_args[] = {tmp_args_element_name_41, tmp_args_element_name_42}; tmp_dict_value_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_35, call_args); } Py_DECREF(tmp_called_name_35); if (tmp_dict_value_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 204; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto dict_build_exception_2; } tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); Py_DECREF(tmp_dict_value_4); assert(!(tmp_res != 0)); } goto dict_build_noexception_2; // Exception handling pass through code for dict_build: dict_build_exception_2:; Py_DECREF(tmp_called_name_33); Py_DECREF(tmp_kwargs_name_13); goto try_except_handler_14; // Finished with no exception for dict_build: dict_build_noexception_2:; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 201; tmp_called_instance_23 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_33, tmp_kwargs_name_13); Py_DECREF(tmp_called_name_33); Py_DECREF(tmp_kwargs_name_13); if (tmp_called_instance_23 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 201; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 201; tmp_assign_source_86 = CALL_METHOD_NO_ARGS(tmp_called_instance_23, mod_consts[125]); Py_DECREF(tmp_called_instance_23); if (tmp_assign_source_86 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 201; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } { PyObject *old = var_score; var_score = tmp_assign_source_86; Py_XDECREF(old); } } { PyObject *tmp_ass_subvalue_2; PyObject *tmp_left_name_16; PyObject *tmp_right_name_16; PyObject *tmp_ass_subscribed_2; PyObject *tmp_ass_subscript_2; PyObject *tmp_tuple_element_12; PyObject *tmp_left_name_17; PyObject *tmp_right_name_17; CHECK_OBJECT(var_score); tmp_left_name_16 = var_score; CHECK_OBJECT(var_topk_sim); tmp_right_name_16 = var_topk_sim; tmp_ass_subvalue_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_16, tmp_right_name_16); if (tmp_ass_subvalue_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } if (var_score_matrix_t2i == NULL) { Py_DECREF(tmp_ass_subvalue_2); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_ass_subscribed_2 = var_score_matrix_t2i; if (var_start == NULL) { Py_DECREF(tmp_ass_subvalue_2); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_left_name_17 = var_start; if (var_i == NULL) { Py_DECREF(tmp_ass_subvalue_2); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_right_name_17 = var_i; tmp_tuple_element_12 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_17, tmp_right_name_17); if (tmp_tuple_element_12 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_ass_subvalue_2); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } tmp_ass_subscript_2 = PyTuple_New(2); PyTuple_SET_ITEM(tmp_ass_subscript_2, 0, tmp_tuple_element_12); if (var_topk_idx == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[133]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_3; } tmp_tuple_element_12 = var_topk_idx; PyTuple_SET_ITEM0(tmp_ass_subscript_2, 1, tmp_tuple_element_12); goto tuple_build_noexception_3; // Exception handling pass through code for tuple_build: tuple_build_exception_3:; Py_DECREF(tmp_ass_subvalue_2); Py_DECREF(tmp_ass_subscript_2); goto try_except_handler_14; // Finished with no exception for tuple_build: tuple_build_noexception_3:; tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); Py_DECREF(tmp_ass_subscript_2); Py_DECREF(tmp_ass_subvalue_2); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 206; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } } if (CONSIDER_THREADING() == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 196; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto try_except_handler_14; } goto loop_start_5; loop_end_5:; goto try_end_17; // Exception handler code: try_except_handler_14:; exception_keeper_type_17 = exception_type; exception_keeper_value_17 = exception_value; exception_keeper_tb_17 = exception_tb; exception_keeper_lineno_17 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_for_loop_5__iter_value); tmp_for_loop_5__iter_value = NULL; Py_XDECREF(tmp_for_loop_5__for_iterator); tmp_for_loop_5__for_iterator = NULL; // Re-raise. exception_type = exception_keeper_type_17; exception_value = exception_keeper_value_17; exception_tb = exception_keeper_tb_17; exception_lineno = exception_keeper_lineno_17; goto frame_exception_exit_1; // End of try: try_end_17:; Py_XDECREF(tmp_for_loop_5__iter_value); tmp_for_loop_5__iter_value = NULL; Py_XDECREF(tmp_for_loop_5__for_iterator); tmp_for_loop_5__for_iterator = NULL; { nuitka_bool tmp_condition_result_1; PyObject *tmp_called_instance_24; PyObject *tmp_call_result_8; int tmp_truth_name_1; tmp_called_instance_24 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); if (unlikely(tmp_called_instance_24 == NULL)) { tmp_called_instance_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); } if (tmp_called_instance_24 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 208; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 208; tmp_call_result_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_24, mod_consts[134]); if (tmp_call_result_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 208; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_8); if (tmp_truth_name_1 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_call_result_8); exception_lineno = 208; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; Py_DECREF(tmp_call_result_8); if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { goto branch_yes_1; } else { goto branch_no_1; } } branch_yes_1:; { PyObject *tmp_called_instance_25; PyObject *tmp_call_result_9; tmp_called_instance_25 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[135]); if (unlikely(tmp_called_instance_25 == NULL)) { tmp_called_instance_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[135]); } if (tmp_called_instance_25 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 209; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 209; tmp_call_result_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_25, mod_consts[136]); if (tmp_call_result_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 209; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_9); } { PyObject *tmp_called_name_36; PyObject *tmp_expression_name_54; PyObject *tmp_expression_name_55; PyObject *tmp_call_result_10; PyObject *tmp_args_name_9; PyObject *tmp_tuple_element_13; PyObject *tmp_kwargs_name_14; PyObject *tmp_dict_key_5; PyObject *tmp_dict_value_5; PyObject *tmp_expression_name_56; PyObject *tmp_expression_name_57; PyObject *tmp_expression_name_58; tmp_expression_name_55 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_55 == NULL)) { tmp_expression_name_55 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_55 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 210; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[137]); if (tmp_expression_name_54 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 210; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_36 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[138]); Py_DECREF(tmp_expression_name_54); if (tmp_called_name_36 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 210; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_score_matrix_i2t == NULL) { Py_DECREF(tmp_called_name_36); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 211; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_13 = var_score_matrix_i2t; tmp_args_name_9 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_13); tmp_dict_key_5 = mod_consts[139]; tmp_expression_name_58 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_58 == NULL)) { tmp_expression_name_58 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_58 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_36); Py_DECREF(tmp_args_name_9); exception_lineno = 211; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_57 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[137]); if (tmp_expression_name_57 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_36); Py_DECREF(tmp_args_name_9); exception_lineno = 211; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[140]); Py_DECREF(tmp_expression_name_57); if (tmp_expression_name_56 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_36); Py_DECREF(tmp_args_name_9); exception_lineno = 211; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_dict_value_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[141]); Py_DECREF(tmp_expression_name_56); if (tmp_dict_value_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_36); Py_DECREF(tmp_args_name_9); exception_lineno = 211; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_kwargs_name_14 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_14, tmp_dict_key_5, tmp_dict_value_5); Py_DECREF(tmp_dict_value_5); assert(!(tmp_res != 0)); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 210; tmp_call_result_10 = CALL_FUNCTION(tmp_called_name_36, tmp_args_name_9, tmp_kwargs_name_14); Py_DECREF(tmp_called_name_36); Py_DECREF(tmp_args_name_9); Py_DECREF(tmp_kwargs_name_14); if (tmp_call_result_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 210; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_10); } { PyObject *tmp_called_name_37; PyObject *tmp_expression_name_59; PyObject *tmp_expression_name_60; PyObject *tmp_call_result_11; PyObject *tmp_args_name_10; PyObject *tmp_tuple_element_14; PyObject *tmp_kwargs_name_15; PyObject *tmp_dict_key_6; PyObject *tmp_dict_value_6; PyObject *tmp_expression_name_61; PyObject *tmp_expression_name_62; PyObject *tmp_expression_name_63; tmp_expression_name_60 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_60 == NULL)) { tmp_expression_name_60 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_60 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 213; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_59 = LOOKUP_ATTRIBUTE(tmp_expression_name_60, mod_consts[137]); if (tmp_expression_name_59 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 213; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[138]); Py_DECREF(tmp_expression_name_59); if (tmp_called_name_37 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 213; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } if (var_score_matrix_t2i == NULL) { Py_DECREF(tmp_called_name_37); FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 214; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_14 = var_score_matrix_t2i; tmp_args_name_10 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_14); tmp_dict_key_6 = mod_consts[139]; tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_63 == NULL)) { tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_63 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_37); Py_DECREF(tmp_args_name_10); exception_lineno = 214; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_62 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[137]); if (tmp_expression_name_62 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_37); Py_DECREF(tmp_args_name_10); exception_lineno = 214; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_expression_name_61 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[140]); Py_DECREF(tmp_expression_name_62); if (tmp_expression_name_61 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_37); Py_DECREF(tmp_args_name_10); exception_lineno = 214; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[141]); Py_DECREF(tmp_expression_name_61); if (tmp_dict_value_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_37); Py_DECREF(tmp_args_name_10); exception_lineno = 214; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_kwargs_name_15 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_15, tmp_dict_key_6, tmp_dict_value_6); Py_DECREF(tmp_dict_value_6); assert(!(tmp_res != 0)); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 213; tmp_call_result_11 = CALL_FUNCTION(tmp_called_name_37, tmp_args_name_10, tmp_kwargs_name_15); Py_DECREF(tmp_called_name_37); Py_DECREF(tmp_args_name_10); Py_DECREF(tmp_kwargs_name_15); if (tmp_call_result_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 213; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_11); } branch_no_1:; { PyObject *tmp_assign_source_87; PyObject *tmp_left_name_18; PyObject *tmp_called_instance_26; PyObject *tmp_right_name_18; tmp_called_instance_26 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70]); if (unlikely(tmp_called_instance_26 == NULL)) { tmp_called_instance_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); } if (tmp_called_instance_26 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 217; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 217; tmp_left_name_18 = CALL_METHOD_NO_ARGS(tmp_called_instance_26, mod_consts[70]); if (tmp_left_name_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 217; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } CHECK_OBJECT(var_start_time); tmp_right_name_18 = var_start_time; tmp_assign_source_87 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_18, tmp_right_name_18); Py_DECREF(tmp_left_name_18); if (tmp_assign_source_87 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 217; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_total_time == NULL); var_total_time = tmp_assign_source_87; } { PyObject *tmp_assign_source_88; PyObject *tmp_unicode_arg_1; PyObject *tmp_called_name_38; PyObject *tmp_expression_name_64; PyObject *tmp_kwargs_name_16; PyObject *tmp_dict_key_7; PyObject *tmp_dict_value_7; PyObject *tmp_int_arg_1; tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[142]); if (unlikely(tmp_expression_name_64 == NULL)) { tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[142]); } if (tmp_expression_name_64 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 218; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[143]); if (tmp_called_name_38 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 218; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_dict_key_7 = mod_consts[144]; CHECK_OBJECT(var_total_time); tmp_int_arg_1 = var_total_time; tmp_dict_value_7 = PyNumber_Int(tmp_int_arg_1); if (tmp_dict_value_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_38); exception_lineno = 218; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_kwargs_name_16 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_kwargs_name_16, tmp_dict_key_7, tmp_dict_value_7); Py_DECREF(tmp_dict_value_7); assert(!(tmp_res != 0)); frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 218; tmp_unicode_arg_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_38, tmp_kwargs_name_16); Py_DECREF(tmp_called_name_38); Py_DECREF(tmp_kwargs_name_16); if (tmp_unicode_arg_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 218; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_assign_source_88 = PyObject_Unicode(tmp_unicode_arg_1); Py_DECREF(tmp_unicode_arg_1); if (tmp_assign_source_88 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 218; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } assert(var_total_time_str == NULL); var_total_time_str = tmp_assign_source_88; } { PyObject *tmp_called_name_39; PyObject *tmp_expression_name_65; PyObject *tmp_call_result_12; PyObject *tmp_args_element_name_43; PyObject *tmp_called_instance_27; PyObject *tmp_args_element_name_44; tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); if (unlikely(tmp_expression_name_65 == NULL)) { tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); } if (tmp_expression_name_65 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 219; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_39 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[56]); if (tmp_called_name_39 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 219; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_27 = mod_consts[145]; CHECK_OBJECT(var_total_time_str); tmp_args_element_name_44 = var_total_time_str; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 219; tmp_args_element_name_43 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_27, mod_consts[146], tmp_args_element_name_44); if (tmp_args_element_name_43 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); Py_DECREF(tmp_called_name_39); exception_lineno = 219; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 219; tmp_call_result_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_39, tmp_args_element_name_43); Py_DECREF(tmp_called_name_39); Py_DECREF(tmp_args_element_name_43); if (tmp_call_result_12 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 219; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } Py_DECREF(tmp_call_result_12); } { PyObject *tmp_tuple_element_15; PyObject *tmp_called_instance_28; PyObject *tmp_called_instance_29; if (var_score_matrix_i2t == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_29 = var_score_matrix_i2t; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; tmp_called_instance_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_29, mod_consts[101]); if (tmp_called_instance_28 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; tmp_tuple_element_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_28, mod_consts[147]); Py_DECREF(tmp_called_instance_28); if (tmp_tuple_element_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto frame_exception_exit_1; } tmp_return_value = PyTuple_New(2); { PyObject *tmp_called_instance_30; PyObject *tmp_called_instance_31; PyTuple_SET_ITEM(tmp_return_value, 0, tmp_tuple_element_15); if (var_score_matrix_t2i == NULL) { FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); exception_tb = NULL; NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_4; } tmp_called_instance_31 = var_score_matrix_t2i; frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; tmp_called_instance_30 = CALL_METHOD_NO_ARGS(tmp_called_instance_31, mod_consts[101]); if (tmp_called_instance_30 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_4; } frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; tmp_tuple_element_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_30, mod_consts[147]); Py_DECREF(tmp_called_instance_30); if (tmp_tuple_element_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 221; type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; goto tuple_build_exception_4; } PyTuple_SET_ITEM(tmp_return_value, 1, tmp_tuple_element_15); } goto tuple_build_noexception_4; // Exception handling pass through code for tuple_build: tuple_build_exception_4:; Py_DECREF(tmp_return_value); goto frame_exception_exit_1; // Finished with no exception for tuple_build: tuple_build_noexception_4:; goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_34e4752d34c2c5cc3b4ee22e380d2d44, exception_lineno); } else if (exception_tb->tb_frame != &frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_34e4752d34c2c5cc3b4ee22e380d2d44, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_34e4752d34c2c5cc3b4ee22e380d2d44, type_description_1, par_model, par_data_loader, par_kwargs, var_k_test, var_metric_logger, var_header, var_start_time, var_texts, var_num_text, var_text_bs, var_text_ids, var_text_embeds, var_text_atts, var_i, var_text, var_text_input, var_text_feat, var_text_embed, var_vit_feats, var_image_embeds, var_samples, var_image, var_image_feat, var_vit_feat, var_image_embed, var_sims_matrix, var_sim_q2t, var_sim_i2t, var__, var_score_matrix_i2t, var_num_tasks, var_rank, var_step, var_start, var_end, var_sims, var_topk_sim, var_topk_idx, var_image_inputs, var_score, var_score_matrix_t2i, var_total_time, var_total_time_str ); // Release cached frame if used for exception. if (frame_34e4752d34c2c5cc3b4ee22e380d2d44 == cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44); cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = NULL; } assertFrameObject(frame_34e4752d34c2c5cc3b4ee22e380d2d44); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_1:; Py_XDECREF(par_model); par_model = NULL; Py_XDECREF(par_data_loader); par_data_loader = NULL; Py_XDECREF(par_kwargs); par_kwargs = NULL; Py_XDECREF(var_k_test); var_k_test = NULL; Py_XDECREF(var_metric_logger); var_metric_logger = NULL; Py_XDECREF(var_header); var_header = NULL; Py_XDECREF(var_start_time); var_start_time = NULL; Py_XDECREF(var_texts); var_texts = NULL; Py_XDECREF(var_num_text); var_num_text = NULL; Py_XDECREF(var_text_bs); var_text_bs = NULL; Py_XDECREF(var_text_ids); var_text_ids = NULL; Py_XDECREF(var_text_embeds); var_text_embeds = NULL; Py_XDECREF(var_text_atts); var_text_atts = NULL; Py_XDECREF(var_i); var_i = NULL; Py_XDECREF(var_text); var_text = NULL; Py_XDECREF(var_text_input); var_text_input = NULL; Py_XDECREF(var_text_feat); var_text_feat = NULL; Py_XDECREF(var_text_embed); var_text_embed = NULL; Py_XDECREF(var_vit_feats); var_vit_feats = NULL; Py_XDECREF(var_image_embeds); var_image_embeds = NULL; Py_XDECREF(var_samples); var_samples = NULL; Py_XDECREF(var_image); var_image = NULL; Py_XDECREF(var_image_feat); var_image_feat = NULL; Py_XDECREF(var_vit_feat); var_vit_feat = NULL; Py_XDECREF(var_image_embed); var_image_embed = NULL; Py_XDECREF(var_sims_matrix); var_sims_matrix = NULL; Py_XDECREF(var_sim_q2t); var_sim_q2t = NULL; Py_XDECREF(var_sim_i2t); var_sim_i2t = NULL; Py_XDECREF(var__); var__ = NULL; Py_XDECREF(var_score_matrix_i2t); var_score_matrix_i2t = NULL; Py_XDECREF(var_num_tasks); var_num_tasks = NULL; Py_XDECREF(var_rank); var_rank = NULL; Py_XDECREF(var_step); var_step = NULL; Py_XDECREF(var_start); var_start = NULL; CHECK_OBJECT(var_end); Py_DECREF(var_end); var_end = NULL; Py_XDECREF(var_sims); var_sims = NULL; Py_XDECREF(var_topk_sim); var_topk_sim = NULL; Py_XDECREF(var_topk_idx); var_topk_idx = NULL; Py_XDECREF(var_image_inputs); var_image_inputs = NULL; Py_XDECREF(var_score); var_score = NULL; Py_XDECREF(var_score_matrix_t2i); var_score_matrix_t2i = NULL; Py_XDECREF(var_total_time); var_total_time = NULL; Py_XDECREF(var_total_time_str); var_total_time_str = NULL; goto function_return_exit; // Exception handler code: try_except_handler_1:; exception_keeper_type_18 = exception_type; exception_keeper_value_18 = exception_value; exception_keeper_tb_18 = exception_tb; exception_keeper_lineno_18 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(par_model); par_model = NULL; Py_XDECREF(par_data_loader); par_data_loader = NULL; Py_XDECREF(par_kwargs); par_kwargs = NULL; Py_XDECREF(var_k_test); var_k_test = NULL; Py_XDECREF(var_metric_logger); var_metric_logger = NULL; Py_XDECREF(var_header); var_header = NULL; Py_XDECREF(var_start_time); var_start_time = NULL; Py_XDECREF(var_texts); var_texts = NULL; Py_XDECREF(var_num_text); var_num_text = NULL; Py_XDECREF(var_text_bs); var_text_bs = NULL; Py_XDECREF(var_text_ids); var_text_ids = NULL; Py_XDECREF(var_text_embeds); var_text_embeds = NULL; Py_XDECREF(var_text_atts); var_text_atts = NULL; Py_XDECREF(var_i); var_i = NULL; Py_XDECREF(var_text); var_text = NULL; Py_XDECREF(var_text_input); var_text_input = NULL; Py_XDECREF(var_text_feat); var_text_feat = NULL; Py_XDECREF(var_text_embed); var_text_embed = NULL; Py_XDECREF(var_vit_feats); var_vit_feats = NULL; Py_XDECREF(var_image_embeds); var_image_embeds = NULL; Py_XDECREF(var_samples); var_samples = NULL; Py_XDECREF(var_image); var_image = NULL; Py_XDECREF(var_image_feat); var_image_feat = NULL; Py_XDECREF(var_vit_feat); var_vit_feat = NULL; Py_XDECREF(var_image_embed); var_image_embed = NULL; Py_XDECREF(var_sims_matrix); var_sims_matrix = NULL; Py_XDECREF(var_sim_q2t); var_sim_q2t = NULL; Py_XDECREF(var_sim_i2t); var_sim_i2t = NULL; Py_XDECREF(var__); var__ = NULL; Py_XDECREF(var_score_matrix_i2t); var_score_matrix_i2t = NULL; Py_XDECREF(var_num_tasks); var_num_tasks = NULL; Py_XDECREF(var_rank); var_rank = NULL; Py_XDECREF(var_step); var_step = NULL; Py_XDECREF(var_start); var_start = NULL; Py_XDECREF(var_end); var_end = NULL; Py_XDECREF(var_sims); var_sims = NULL; Py_XDECREF(var_topk_sim); var_topk_sim = NULL; Py_XDECREF(var_topk_idx); var_topk_idx = NULL; Py_XDECREF(var_image_inputs); var_image_inputs = NULL; Py_XDECREF(var_score); var_score = NULL; Py_XDECREF(var_score_matrix_t2i); var_score_matrix_t2i = NULL; Py_XDECREF(var_total_time); var_total_time = NULL; Py_XDECREF(var_total_time_str); var_total_time_str = NULL; // Re-raise. exception_type = exception_keeper_type_18; exception_value = exception_keeper_value_18; exception_tb = exception_keeper_tb_18; exception_lineno = exception_keeper_lineno_18; goto function_exception_exit; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; function_exception_exit: assert(exception_type); RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; function_return_exit: // Function cleanup code if any. // Actual function exit with return value, making sure we did not make // the error status worse despite non-NULL return. CHECK_OBJECT(tmp_return_value); assert(had_error || !ERROR_OCCURRED()); return tmp_return_value; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer() { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__1_init_tokenizer, mod_consts[185], #if PYTHON_VERSION >= 0x300 mod_consts[186], #endif codeobj_f2b34b9b84f486851b110f17c4ee05e2, NULL, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(PyObject *defaults) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__2_maybe_autocast, mod_consts[188], #if PYTHON_VERSION >= 0x300 mod_consts[189], #endif codeobj_939e8d935a7d068a806eee2effd6eef8, defaults, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(PyObject *defaults) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__3_init_Qformer, mod_consts[191], #if PYTHON_VERSION >= 0x300 mod_consts[192], #endif codeobj_0eee27e304dfa5248f011bdb07b1d838, defaults, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder() { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__4_init_vision_encoder, mod_consts[193], #if PYTHON_VERSION >= 0x300 mod_consts[194], #endif codeobj_8fcb6395cf0c0f62db018c730b7394a7, NULL, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained() { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__5_load_from_pretrained, mod_consts[195], #if PYTHON_VERSION >= 0x300 mod_consts[196], #endif codeobj_e23fcdacbf76938ecc6dc87b76499068, NULL, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(PyObject *defaults) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__6_disabled_train, mod_consts[199], #if PYTHON_VERSION >= 0x300 NULL, #endif codeobj_542a5e3c307e234b4713edd7809bc334, defaults, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, mod_consts[58], NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__7_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__7_forward, mod_consts[60], #if PYTHON_VERSION >= 0x300 mod_consts[202], #endif codeobj_4a4587fc6b26979d42283eb077ac36b8, NULL, #if PYTHON_VERSION >= 0x300 NULL, annotations, #endif module_models$blip2, NULL, closure, 1 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix() { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_models$blip2$$$function__8_compute_sim_matrix, mod_consts[203], #if PYTHON_VERSION >= 0x300 NULL, #endif codeobj_34e4752d34c2c5cc3b4ee22e380d2d44, NULL, #if PYTHON_VERSION >= 0x300 NULL, NULL, #endif module_models$blip2, NULL, NULL, 0 ); return (PyObject *)result; } extern void _initCompiledCellType(); extern void _initCompiledGeneratorType(); extern void _initCompiledFunctionType(); extern void _initCompiledMethodType(); extern void _initCompiledFrameType(); extern PyTypeObject Nuitka_Loader_Type; #ifdef _NUITKA_PLUGIN_DILL_ENABLED // Provide a way to create find a function via its C code and create it back // in another process, useful for multiprocessing extensions like dill extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); function_impl_code functable_models$blip2[] = { impl_models$blip2$$$function__1_init_tokenizer, impl_models$blip2$$$function__2_maybe_autocast, impl_models$blip2$$$function__3_init_Qformer, impl_models$blip2$$$function__4_init_vision_encoder, impl_models$blip2$$$function__5_load_from_pretrained, impl_models$blip2$$$function__6_disabled_train, impl_models$blip2$$$function__7_forward, impl_models$blip2$$$function__8_compute_sim_matrix, NULL }; static char const *_reduce_compiled_function_argnames[] = { "func", NULL }; static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { PyObject *func; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { return NULL; } if (Nuitka_Function_Check(func) == false) { SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); return NULL; } struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; function_impl_code *current = functable_models$blip2; int offset = 0; while (*current != NULL) { if (*current == function->m_c_code) { break; } current += 1; offset += 1; } if (*current == NULL) { SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); return NULL; } PyObject *code_object_desc = PyTuple_New(6); PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); CHECK_OBJECT_DEEP(code_object_desc); PyObject *result = PyTuple_New(4); PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); PyTuple_SET_ITEM(result, 1, code_object_desc); PyTuple_SET_ITEM0(result, 2, function->m_defaults); PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); CHECK_OBJECT_DEEP(result); return result; } static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, METH_VARARGS | METH_KEYWORDS, NULL}; static char const *_create_compiled_function_argnames[] = { "func", "code_object_desc", "defaults", "doc", NULL }; static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { CHECK_OBJECT_DEEP(args); PyObject *func; PyObject *code_object_desc; PyObject *defaults; PyObject *doc; if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { return NULL; } int offset = PyLong_AsLong(func); if (offset == -1 && ERROR_OCCURRED()) { return NULL; } if (offset > sizeof(functable_models$blip2) || offset < 0) { SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); return NULL; } PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); int line_int = PyLong_AsLong(line); assert(!ERROR_OCCURRED()); PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); int arg_count_int = PyLong_AsLong(arg_count); assert(!ERROR_OCCURRED()); PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); int flags_int = PyLong_AsLong(flags); assert(!ERROR_OCCURRED()); PyCodeObject *code_object = MAKE_CODEOBJECT( filename, line_int, flags_int, function_name, argnames, NULL, // freevars arg_count_int, 0, // TODO: Missing kw_only_count 0 // TODO: Missing pos_only_count ); struct Nuitka_FunctionObject *result = Nuitka_Function_New( functable_models$blip2[offset], code_object->co_name, #if PYTHON_VERSION >= 0x300 NULL, // TODO: Not transferring qualname yet #endif code_object, defaults, #if PYTHON_VERSION >= 0x300 NULL, // kwdefaults are done on the outside currently NULL, // TODO: Not transferring annotations #endif module_models$blip2, doc, NULL, 0 ); return (PyObject *)result; } static PyMethodDef _method_def_create_compiled_function = { "create_compiled_function", (PyCFunction)_create_compiled_function, METH_VARARGS | METH_KEYWORDS, NULL }; #endif // Internal entry point for module code. PyObject *modulecode_models$blip2(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { module_models$blip2 = module; #ifdef _NUITKA_MODULE // In case of a stand alone extension module, need to call initialization // the init here because that's the first and only time we are going to get // called here. // Initialize the constant values used. _initBuiltinModule(); createGlobalConstants(); /* Initialize the compiled types of Nuitka. */ _initCompiledCellType(); _initCompiledGeneratorType(); _initCompiledFunctionType(); _initCompiledMethodType(); _initCompiledFrameType(); #if PYTHON_VERSION < 0x300 _initSlotCompare(); #endif #if PYTHON_VERSION >= 0x270 _initSlotIternext(); #endif patchBuiltinModule(); patchTypeComparison(); // Enable meta path based loader if not already done. #ifdef _NUITKA_TRACE PRINT_STRING("models.blip2: Calling setupMetaPathBasedLoader().\n"); #endif setupMetaPathBasedLoader(); #if PYTHON_VERSION >= 0x300 patchInspectModule(); #endif #endif /* The constants only used by this module are created now. */ #ifdef _NUITKA_TRACE PRINT_STRING("models.blip2: Calling createModuleConstants().\n"); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE PRINT_STRING("models.blip2: Calling createModuleCodeObjects().\n"); #endif createModuleCodeObjects(); // PRINT_STRING("in initmodels$blip2\n"); // Create the module object first. There are no methods initially, all are // added dynamically in actual code only. Also no "__doc__" is initially // set at this time, as it could not contain NUL characters this way, they // are instead set in early module code. No "self" for modules, we have no // use for it. moduledict_models$blip2 = MODULE_DICT(module_models$blip2); #ifdef _NUITKA_PLUGIN_DILL_ENABLED registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); #endif // Set "__compiled__" to what version information we have. UPDATE_STRING_DICT0( moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___compiled__, Nuitka_dunder_compiled_value ); // Update "__package__" value to what it ought to be. { #if 0 UPDATE_STRING_DICT0( moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___package__, const_str_empty ); #elif 0 PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); UPDATE_STRING_DICT0( moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 0x300 PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); char const *module_name_cstr = PyString_AS_STRING(module_name); char const *last_dot = strrchr(module_name_cstr, '.'); if (last_dot != NULL) { UPDATE_STRING_DICT1( moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___package__, PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) ); } #else PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); if (dot_index != -1) { UPDATE_STRING_DICT1( moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring(module_name, 0, dot_index) ); } #endif #endif } CHECK_OBJECT(module_models$blip2); // For deep importing of a module we need to have "__builtins__", so we set // it ourselves in the same way than CPython does. Note: This must be done // before the frame object is allocated, or else it may fail. if (GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { PyObject *value = (PyObject *)builtin_module; // Check if main module, not a dict then but the module itself. #if !defined(_NUITKA_EXE) || !0 value = PyModule_GetDict(value); #endif UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___builtins__, value); } #if PYTHON_VERSION >= 0x300 UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); #endif #if PYTHON_VERSION >= 0x340 // Set the "__spec__" value #if 0 // Main modules just get "None" as spec. UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); #else // Other modules get a "ModuleSpec" from the standard mechanism. { PyObject *bootstrap_module = getImportLibBootstrapModule(); CHECK_OBJECT(bootstrap_module); PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); CHECK_OBJECT(_spec_from_module); PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$blip2); Py_DECREF(_spec_from_module); // We can assume this to never fail, or else we are in trouble anyway. // CHECK_OBJECT(spec_value); if (spec_value == NULL) { PyErr_PrintEx(0); abort(); } // Mark the execution in the "__spec__" value. SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); } #endif #endif // Temp variables if any PyObject *outline_0_var___class__ = NULL; struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); PyObject *tmp_class_creation_1__bases = NULL; PyObject *tmp_class_creation_1__bases_orig = NULL; PyObject *tmp_class_creation_1__class_decl_dict = NULL; PyObject *tmp_class_creation_1__metaclass = NULL; PyObject *tmp_class_creation_1__prepared = NULL; PyObject *tmp_class_creation_2__bases = NULL; PyObject *tmp_class_creation_2__bases_orig = NULL; PyObject *tmp_class_creation_2__class_decl_dict = NULL; PyObject *tmp_class_creation_2__metaclass = NULL; PyObject *tmp_class_creation_2__prepared = NULL; PyObject *tmp_import_from_1__module = NULL; struct Nuitka_FrameObject *frame_058485e121bd2827510070e07e93711c; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; bool tmp_result; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; int tmp_res; PyObject *tmp_dictdel_dict; PyObject *tmp_dictdel_key; PyObject *locals_models$blip2$$$class__1_Blip2Base_28 = NULL; PyObject *tmp_dictset_value; struct Nuitka_FrameObject *frame_ea027d7d60a14da7f0ce573c2280d557_2; NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; static struct Nuitka_FrameObject *cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = NULL; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; PyObject *locals_models$blip2$$$class__2_LayerNorm_99 = NULL; struct Nuitka_FrameObject *frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3; NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; static struct Nuitka_FrameObject *cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = NULL; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; PyObject *exception_keeper_type_6; PyObject *exception_keeper_value_6; PyTracebackObject *exception_keeper_tb_6; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; PyObject *exception_keeper_type_7; PyObject *exception_keeper_value_7; PyTracebackObject *exception_keeper_tb_7; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = mod_consts[148]; UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[149], tmp_assign_source_1); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = module_filename_obj; UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[150], tmp_assign_source_2); } // Frame without reuse. frame_058485e121bd2827510070e07e93711c = MAKE_MODULE_FRAME(codeobj_058485e121bd2827510070e07e93711c, module_models$blip2); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack(frame_058485e121bd2827510070e07e93711c); assert(Py_REFCNT(frame_058485e121bd2827510070e07e93711c) == 2); // Framed code: { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; tmp_assattr_name_1 = module_filename_obj; tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[151]); if (unlikely(tmp_assattr_target_1 == NULL)) { tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); } assert(!(tmp_assattr_target_1 == NULL)); tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[152], tmp_assattr_name_1); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 1; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; tmp_assattr_name_2 = Py_True; tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[151]); if (unlikely(tmp_assattr_target_2 == NULL)) { tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); } assert(!(tmp_assattr_target_2 == NULL)); tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[153], tmp_assattr_name_2); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 1; goto frame_exception_exit_1; } } { PyObject *tmp_assign_source_3; tmp_assign_source_3 = Py_None; UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[154], tmp_assign_source_3); } { PyObject *tmp_assign_source_4; PyObject *tmp_name_name_1; PyObject *tmp_globals_arg_name_1; PyObject *tmp_locals_arg_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = mod_consts[13]; tmp_globals_arg_name_1 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_1 = Py_None; tmp_fromlist_name_1 = Py_None; tmp_level_name_1 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 7; tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); if (tmp_assign_source_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 7; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_4); } { PyObject *tmp_assign_source_5; PyObject *tmp_name_name_2; PyObject *tmp_globals_arg_name_2; PyObject *tmp_locals_arg_name_2; PyObject *tmp_fromlist_name_2; PyObject *tmp_level_name_2; tmp_name_name_2 = mod_consts[55]; tmp_globals_arg_name_2 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_2 = Py_None; tmp_fromlist_name_2 = Py_None; tmp_level_name_2 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 8; tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); if (tmp_assign_source_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 8; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_5); } { PyObject *tmp_assign_source_6; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 9; tmp_assign_source_6 = IMPORT_HARD_OS(); assert(!(tmp_assign_source_6 == NULL)); UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_6); } { PyObject *tmp_assign_source_7; PyObject *tmp_name_name_3; PyObject *tmp_globals_arg_name_3; PyObject *tmp_locals_arg_name_3; PyObject *tmp_fromlist_name_3; PyObject *tmp_level_name_3; tmp_name_name_3 = mod_consts[70]; tmp_globals_arg_name_3 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_3 = Py_None; tmp_fromlist_name_3 = Py_None; tmp_level_name_3 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 10; tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); assert(!(tmp_assign_source_7 == NULL)); UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_7); } { PyObject *tmp_assign_source_8; PyObject *tmp_name_name_4; PyObject *tmp_globals_arg_name_4; PyObject *tmp_locals_arg_name_4; PyObject *tmp_fromlist_name_4; PyObject *tmp_level_name_4; tmp_name_name_4 = mod_consts[142]; tmp_globals_arg_name_4 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_4 = Py_None; tmp_fromlist_name_4 = Py_None; tmp_level_name_4 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 11; tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); if (tmp_assign_source_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 11; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[142], tmp_assign_source_8); } { PyObject *tmp_assign_source_9; PyObject *tmp_name_name_5; PyObject *tmp_globals_arg_name_5; PyObject *tmp_locals_arg_name_5; PyObject *tmp_fromlist_name_5; PyObject *tmp_level_name_5; tmp_name_name_5 = mod_consts[7]; tmp_globals_arg_name_5 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_5 = Py_None; tmp_fromlist_name_5 = Py_None; tmp_level_name_5 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 13; tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); if (tmp_assign_source_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 13; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7], tmp_assign_source_9); } { PyObject *tmp_assign_source_10; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_6; PyObject *tmp_globals_arg_name_6; PyObject *tmp_locals_arg_name_6; PyObject *tmp_fromlist_name_6; PyObject *tmp_level_name_6; tmp_name_name_6 = mod_consts[155]; tmp_globals_arg_name_6 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_6 = Py_None; tmp_fromlist_name_6 = Py_None; tmp_level_name_6 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 14; tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); if (tmp_import_name_from_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 14; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_1)) { tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_1, (PyObject *)moduledict_models$blip2, mod_consts[22], mod_consts[74] ); } else { tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[22]); } Py_DECREF(tmp_import_name_from_1); if (tmp_assign_source_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 14; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22], tmp_assign_source_10); } { PyObject *tmp_assign_source_11; PyObject *tmp_import_name_from_2; PyObject *tmp_name_name_7; PyObject *tmp_globals_arg_name_7; PyObject *tmp_locals_arg_name_7; PyObject *tmp_fromlist_name_7; PyObject *tmp_level_name_7; tmp_name_name_7 = mod_consts[156]; tmp_globals_arg_name_7 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_7 = Py_None; tmp_fromlist_name_7 = Py_None; tmp_level_name_7 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 15; tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); if (tmp_import_name_from_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 15; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_2)) { tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_2, (PyObject *)moduledict_models$blip2, mod_consts[137], mod_consts[74] ); } else { tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[137]); } Py_DECREF(tmp_import_name_from_2); if (tmp_assign_source_11 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 15; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[135], tmp_assign_source_11); } { PyObject *tmp_assign_source_12; PyObject *tmp_import_name_from_3; PyObject *tmp_import_name_from_4; PyObject *tmp_name_name_8; PyObject *tmp_globals_arg_name_8; PyObject *tmp_locals_arg_name_8; PyObject *tmp_fromlist_name_8; PyObject *tmp_level_name_8; tmp_name_name_8 = mod_consts[157]; tmp_globals_arg_name_8 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_8 = Py_None; tmp_fromlist_name_8 = Py_None; tmp_level_name_8 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 16; tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); if (tmp_import_name_from_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 16; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_4)) { tmp_import_name_from_3 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_4, (PyObject *)moduledict_models$blip2, mod_consts[22], mod_consts[74] ); } else { tmp_import_name_from_3 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[22]); } Py_DECREF(tmp_import_name_from_4); if (tmp_import_name_from_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 16; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_3)) { tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_3, (PyObject *)moduledict_models$blip2, mod_consts[158], mod_consts[74] ); } else { tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[158]); } Py_DECREF(tmp_import_name_from_3); if (tmp_assign_source_12 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 16; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82], tmp_assign_source_12); } { PyObject *tmp_assign_source_13; PyObject *tmp_import_name_from_5; PyObject *tmp_import_name_from_6; PyObject *tmp_name_name_9; PyObject *tmp_globals_arg_name_9; PyObject *tmp_locals_arg_name_9; PyObject *tmp_fromlist_name_9; PyObject *tmp_level_name_9; tmp_name_name_9 = mod_consts[159]; tmp_globals_arg_name_9 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_9 = Py_None; tmp_fromlist_name_9 = Py_None; tmp_level_name_9 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 18; tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); if (tmp_import_name_from_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 18; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_6)) { tmp_import_name_from_5 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_6, (PyObject *)moduledict_models$blip2, mod_consts[160], mod_consts[74] ); } else { tmp_import_name_from_5 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[160]); } Py_DECREF(tmp_import_name_from_6); if (tmp_import_name_from_5 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 18; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_5)) { tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_5, (PyObject *)moduledict_models$blip2, mod_consts[110], mod_consts[74] ); } else { tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[110]); } Py_DECREF(tmp_import_name_from_5); if (tmp_assign_source_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 18; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_13); } { PyObject *tmp_assign_source_14; PyObject *tmp_import_name_from_7; PyObject *tmp_name_name_10; PyObject *tmp_globals_arg_name_10; PyObject *tmp_locals_arg_name_10; PyObject *tmp_fromlist_name_10; PyObject *tmp_level_name_10; tmp_name_name_10 = mod_consts[159]; tmp_globals_arg_name_10 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_10 = Py_None; tmp_fromlist_name_10 = mod_consts[161]; tmp_level_name_10 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 19; tmp_import_name_from_7 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); if (tmp_import_name_from_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 19; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_7)) { tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_7, (PyObject *)moduledict_models$blip2, mod_consts[42], mod_consts[74] ); } else { tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[42]); } Py_DECREF(tmp_import_name_from_7); if (tmp_assign_source_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 19; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[42], tmp_assign_source_14); } { PyObject *tmp_assign_source_15; PyObject *tmp_import_name_from_8; PyObject *tmp_name_name_11; PyObject *tmp_globals_arg_name_11; PyObject *tmp_locals_arg_name_11; PyObject *tmp_fromlist_name_11; PyObject *tmp_level_name_11; tmp_name_name_11 = mod_consts[162]; tmp_globals_arg_name_11 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_11 = Py_None; tmp_fromlist_name_11 = mod_consts[163]; tmp_level_name_11 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 20; tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); if (tmp_import_name_from_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 20; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_8)) { tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_8, (PyObject *)moduledict_models$blip2, mod_consts[41], mod_consts[74] ); } else { tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[41]); } Py_DECREF(tmp_import_name_from_8); if (tmp_assign_source_15 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 20; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[41], tmp_assign_source_15); } { PyObject *tmp_assign_source_16; PyObject *tmp_import_name_from_9; PyObject *tmp_name_name_12; PyObject *tmp_globals_arg_name_12; PyObject *tmp_locals_arg_name_12; PyObject *tmp_fromlist_name_12; PyObject *tmp_level_name_12; tmp_name_name_12 = mod_consts[164]; tmp_globals_arg_name_12 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_12 = Py_None; tmp_fromlist_name_12 = mod_consts[165]; tmp_level_name_12 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 21; tmp_import_name_from_9 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); if (tmp_import_name_from_9 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 21; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_9)) { tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_9, (PyObject *)moduledict_models$blip2, mod_consts[66], mod_consts[74] ); } else { tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[66]); } Py_DECREF(tmp_import_name_from_9); if (tmp_assign_source_16 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 21; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[66], tmp_assign_source_16); } { PyObject *tmp_assign_source_17; PyObject *tmp_import_name_from_10; PyObject *tmp_name_name_13; PyObject *tmp_globals_arg_name_13; PyObject *tmp_locals_arg_name_13; PyObject *tmp_fromlist_name_13; PyObject *tmp_level_name_13; tmp_name_name_13 = mod_consts[166]; tmp_globals_arg_name_13 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_13 = Py_None; tmp_fromlist_name_13 = mod_consts[167]; tmp_level_name_13 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 22; tmp_import_name_from_10 = IMPORT_MODULE5(tmp_name_name_13, tmp_globals_arg_name_13, tmp_locals_arg_name_13, tmp_fromlist_name_13, tmp_level_name_13); if (tmp_import_name_from_10 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 22; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_10)) { tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_10, (PyObject *)moduledict_models$blip2, mod_consts[168], mod_consts[74] ); } else { tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[168]); } Py_DECREF(tmp_import_name_from_10); if (tmp_assign_source_17 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 22; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[168], tmp_assign_source_17); } { PyObject *tmp_assign_source_18; PyObject *tmp_name_name_14; PyObject *tmp_globals_arg_name_14; PyObject *tmp_locals_arg_name_14; PyObject *tmp_fromlist_name_14; PyObject *tmp_level_name_14; tmp_name_name_14 = mod_consts[169]; tmp_globals_arg_name_14 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_14 = Py_None; tmp_fromlist_name_14 = mod_consts[170]; tmp_level_name_14 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 23; tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_14, tmp_globals_arg_name_14, tmp_locals_arg_name_14, tmp_fromlist_name_14, tmp_level_name_14); if (tmp_assign_source_18 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 23; goto frame_exception_exit_1; } assert(tmp_import_from_1__module == NULL); tmp_import_from_1__module = tmp_assign_source_18; } // Tried code: { PyObject *tmp_assign_source_19; PyObject *tmp_import_name_from_11; CHECK_OBJECT(tmp_import_from_1__module); tmp_import_name_from_11 = tmp_import_from_1__module; if (PyModule_Check(tmp_import_name_from_11)) { tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_11, (PyObject *)moduledict_models$blip2, mod_consts[15], mod_consts[74] ); } else { tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[15]); } if (tmp_assign_source_19 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 23; goto try_except_handler_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_19); } { PyObject *tmp_assign_source_20; PyObject *tmp_import_name_from_12; CHECK_OBJECT(tmp_import_from_1__module); tmp_import_name_from_12 = tmp_import_from_1__module; if (PyModule_Check(tmp_import_name_from_12)) { tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_12, (PyObject *)moduledict_models$blip2, mod_consts[20], mod_consts[74] ); } else { tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[20]); } if (tmp_assign_source_20 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 23; goto try_except_handler_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_20); } goto try_end_1; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(tmp_import_from_1__module); Py_DECREF(tmp_import_from_1__module); tmp_import_from_1__module = NULL; // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto frame_exception_exit_1; // End of try: try_end_1:; CHECK_OBJECT(tmp_import_from_1__module); Py_DECREF(tmp_import_from_1__module); tmp_import_from_1__module = NULL; { PyObject *tmp_assign_source_21; PyObject *tmp_import_name_from_13; PyObject *tmp_name_name_15; PyObject *tmp_globals_arg_name_15; PyObject *tmp_locals_arg_name_15; PyObject *tmp_fromlist_name_15; PyObject *tmp_level_name_15; tmp_name_name_15 = mod_consts[171]; tmp_globals_arg_name_15 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_15 = Py_None; tmp_fromlist_name_15 = mod_consts[172]; tmp_level_name_15 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 24; tmp_import_name_from_13 = IMPORT_MODULE5(tmp_name_name_15, tmp_globals_arg_name_15, tmp_locals_arg_name_15, tmp_fromlist_name_15, tmp_level_name_15); if (tmp_import_name_from_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 24; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_13)) { tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_13, (PyObject *)moduledict_models$blip2, mod_consts[37], mod_consts[74] ); } else { tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[37]); } Py_DECREF(tmp_import_name_from_13); if (tmp_assign_source_21 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 24; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[37], tmp_assign_source_21); } { PyObject *tmp_assign_source_22; PyObject *tmp_import_name_from_14; PyObject *tmp_name_name_16; PyObject *tmp_globals_arg_name_16; PyObject *tmp_locals_arg_name_16; PyObject *tmp_fromlist_name_16; PyObject *tmp_level_name_16; tmp_name_name_16 = mod_consts[173]; tmp_globals_arg_name_16 = (PyObject *)moduledict_models$blip2; tmp_locals_arg_name_16 = Py_None; tmp_fromlist_name_16 = mod_consts[174]; tmp_level_name_16 = mod_consts[74]; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 25; tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_16, tmp_globals_arg_name_16, tmp_locals_arg_name_16, tmp_fromlist_name_16, tmp_level_name_16); if (tmp_import_name_from_14 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 25; goto frame_exception_exit_1; } if (PyModule_Check(tmp_import_name_from_14)) { tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_14, (PyObject *)moduledict_models$blip2, mod_consts[0], mod_consts[74] ); } else { tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[0]); } Py_DECREF(tmp_import_name_from_14); if (tmp_assign_source_22 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 25; goto frame_exception_exit_1; } UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_22); } // Tried code: { PyObject *tmp_assign_source_23; PyObject *tmp_tuple_element_1; tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[168]); if (unlikely(tmp_tuple_element_1 == NULL)) { tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[168]); } if (tmp_tuple_element_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_assign_source_23 = PyTuple_New(1); PyTuple_SET_ITEM0(tmp_assign_source_23, 0, tmp_tuple_element_1); assert(tmp_class_creation_1__bases_orig == NULL); tmp_class_creation_1__bases_orig = tmp_assign_source_23; } { PyObject *tmp_assign_source_24; PyObject *tmp_dircall_arg1_1; CHECK_OBJECT(tmp_class_creation_1__bases_orig); tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; Py_INCREF(tmp_dircall_arg1_1); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; tmp_assign_source_24 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); } if (tmp_assign_source_24 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } assert(tmp_class_creation_1__bases == NULL); tmp_class_creation_1__bases = tmp_assign_source_24; } { PyObject *tmp_assign_source_25; tmp_assign_source_25 = PyDict_New(); assert(tmp_class_creation_1__class_decl_dict == NULL); tmp_class_creation_1__class_decl_dict = tmp_assign_source_25; } { PyObject *tmp_assign_source_26; PyObject *tmp_metaclass_name_1; nuitka_bool tmp_condition_result_1; PyObject *tmp_key_name_1; PyObject *tmp_dict_arg_name_1; PyObject *tmp_dict_arg_name_2; PyObject *tmp_key_name_2; nuitka_bool tmp_condition_result_2; int tmp_truth_name_1; PyObject *tmp_type_arg_1; PyObject *tmp_expression_name_1; PyObject *tmp_subscript_name_1; PyObject *tmp_bases_name_1; tmp_key_name_1 = mod_consts[175]; CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); assert(!(tmp_res == -1)); tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { goto condexpr_true_1; } else { goto condexpr_false_1; } condexpr_true_1:; CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; tmp_key_name_2 = mod_consts[175]; tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); if (tmp_metaclass_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } goto condexpr_end_1; condexpr_false_1:; CHECK_OBJECT(tmp_class_creation_1__bases); tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); if (tmp_truth_name_1 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { goto condexpr_true_2; } else { goto condexpr_false_2; } condexpr_true_2:; CHECK_OBJECT(tmp_class_creation_1__bases); tmp_expression_name_1 = tmp_class_creation_1__bases; tmp_subscript_name_1 = mod_consts[74]; tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); if (tmp_type_arg_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); Py_DECREF(tmp_type_arg_1); if (tmp_metaclass_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } goto condexpr_end_2; condexpr_false_2:; tmp_metaclass_name_1 = (PyObject *)&PyType_Type; Py_INCREF(tmp_metaclass_name_1); condexpr_end_2:; condexpr_end_1:; CHECK_OBJECT(tmp_class_creation_1__bases); tmp_bases_name_1 = tmp_class_creation_1__bases; tmp_assign_source_26 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); Py_DECREF(tmp_metaclass_name_1); if (tmp_assign_source_26 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } assert(tmp_class_creation_1__metaclass == NULL); tmp_class_creation_1__metaclass = tmp_assign_source_26; } { nuitka_bool tmp_condition_result_3; PyObject *tmp_key_name_3; PyObject *tmp_dict_arg_name_3; tmp_key_name_3 = mod_consts[175]; CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); assert(!(tmp_res == -1)); tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { goto branch_yes_1; } else { goto branch_no_1; } } branch_yes_1:; CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; tmp_dictdel_key = mod_consts[175]; tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } branch_no_1:; { nuitka_bool tmp_condition_result_4; PyObject *tmp_expression_name_2; CHECK_OBJECT(tmp_class_creation_1__metaclass); tmp_expression_name_2 = tmp_class_creation_1__metaclass; tmp_result = HAS_ATTR_BOOL(tmp_expression_name_2, mod_consts[176]); tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { goto branch_yes_2; } else { goto branch_no_2; } } branch_yes_2:; { PyObject *tmp_assign_source_27; PyObject *tmp_called_name_1; PyObject *tmp_expression_name_3; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_2; PyObject *tmp_kwargs_name_1; CHECK_OBJECT(tmp_class_creation_1__metaclass); tmp_expression_name_3 = tmp_class_creation_1__metaclass; tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[176]); if (tmp_called_name_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_tuple_element_2 = mod_consts[177]; tmp_args_name_1 = PyTuple_New(2); PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); CHECK_OBJECT(tmp_class_creation_1__bases); tmp_tuple_element_2 = tmp_class_creation_1__bases; PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 28; tmp_assign_source_27 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); Py_DECREF(tmp_called_name_1); Py_DECREF(tmp_args_name_1); if (tmp_assign_source_27 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } assert(tmp_class_creation_1__prepared == NULL); tmp_class_creation_1__prepared = tmp_assign_source_27; } { nuitka_bool tmp_condition_result_5; PyObject *tmp_operand_name_1; PyObject *tmp_expression_name_4; CHECK_OBJECT(tmp_class_creation_1__prepared); tmp_expression_name_4 = tmp_class_creation_1__prepared; tmp_result = HAS_ATTR_BOOL(tmp_expression_name_4, mod_consts[178]); tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { goto branch_yes_3; } else { goto branch_no_3; } } branch_yes_3:; { PyObject *tmp_raise_type_1; PyObject *tmp_raise_value_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_3; PyObject *tmp_getattr_target_1; PyObject *tmp_getattr_attr_1; PyObject *tmp_getattr_default_1; tmp_raise_type_1 = PyExc_TypeError; tmp_left_name_1 = mod_consts[179]; CHECK_OBJECT(tmp_class_creation_1__metaclass); tmp_getattr_target_1 = tmp_class_creation_1__metaclass; tmp_getattr_attr_1 = mod_consts[180]; tmp_getattr_default_1 = mod_consts[181]; tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); if (tmp_tuple_element_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } tmp_right_name_1 = PyTuple_New(2); { PyObject *tmp_expression_name_5; PyObject *tmp_type_arg_2; PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); CHECK_OBJECT(tmp_class_creation_1__prepared); tmp_type_arg_2 = tmp_class_creation_1__prepared; tmp_expression_name_5 = BUILTIN_TYPE1(tmp_type_arg_2); assert(!(tmp_expression_name_5 == NULL)); tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[180]); Py_DECREF(tmp_expression_name_5); if (tmp_tuple_element_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto tuple_build_exception_1; } PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); } goto tuple_build_noexception_1; // Exception handling pass through code for tuple_build: tuple_build_exception_1:; Py_DECREF(tmp_right_name_1); goto try_except_handler_2; // Finished with no exception for tuple_build: tuple_build_noexception_1:; tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); Py_DECREF(tmp_right_name_1); if (tmp_raise_value_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_2; } exception_type = tmp_raise_type_1; Py_INCREF(tmp_raise_type_1); exception_value = tmp_raise_value_1; exception_lineno = 28; RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); goto try_except_handler_2; } branch_no_3:; goto branch_end_2; branch_no_2:; { PyObject *tmp_assign_source_28; tmp_assign_source_28 = PyDict_New(); assert(tmp_class_creation_1__prepared == NULL); tmp_class_creation_1__prepared = tmp_assign_source_28; } branch_end_2:; { PyObject *tmp_assign_source_29; { PyObject *tmp_set_locals_1; CHECK_OBJECT(tmp_class_creation_1__prepared); tmp_set_locals_1 = tmp_class_creation_1__prepared; locals_models$blip2$$$class__1_Blip2Base_28 = tmp_set_locals_1; Py_INCREF(tmp_set_locals_1); } // Tried code: // Tried code: tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[180]); if (unlikely(tmp_dictset_value == NULL)) { tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[180]); } assert(!(tmp_dictset_value == NULL)); tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[182], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_4; } tmp_dictset_value = mod_consts[177]; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[183], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_4; } if (isFrameUnusable(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2)) { Py_XDECREF(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2); #if _DEBUG_REFCOUNTS if (cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = MAKE_FUNCTION_FRAME(codeobj_ea027d7d60a14da7f0ce573c2280d557, module_models$blip2, sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2->m_type_description == NULL); frame_ea027d7d60a14da7f0ce573c2280d557_2 = cache_frame_ea027d7d60a14da7f0ce573c2280d557_2; // Push the new frame as the currently active one. pushFrameStack(frame_ea027d7d60a14da7f0ce573c2280d557_2); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_ea027d7d60a14da7f0ce573c2280d557_2) == 2); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_6; PyObject *tmp_called_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_classmethod_arg_1; tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 29; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_6 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { goto condexpr_true_3; } else { goto condexpr_false_3; } condexpr_true_3:; tmp_called_name_2 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (unlikely(tmp_called_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 29; type_description_2 = "o"; goto frame_exception_exit_2; } if (tmp_called_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 29; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_1 = MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 29; tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); Py_DECREF(tmp_called_name_2); Py_DECREF(tmp_args_element_name_1); if (tmp_dictset_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 29; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_3; condexpr_false_3:; tmp_classmethod_arg_1 = MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); Py_DECREF(tmp_classmethod_arg_1); assert(!(tmp_dictset_value == NULL)); condexpr_end_3:; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[185], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 30; type_description_2 = "o"; goto frame_exception_exit_2; } } { PyObject *tmp_defaults_1; PyObject *tmp_tuple_element_4; PyObject *tmp_expression_name_6; tmp_expression_name_6 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[7]); if (tmp_expression_name_6 == NULL) { if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_6 == NULL)) { tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 35; type_description_2 = "o"; goto frame_exception_exit_2; } Py_INCREF(tmp_expression_name_6); } } tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[187]); Py_DECREF(tmp_expression_name_6); if (tmp_tuple_element_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 35; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_defaults_1 = PyTuple_New(1); PyTuple_SET_ITEM(tmp_defaults_1, 0, tmp_tuple_element_4); tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(tmp_defaults_1); tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[188], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 35; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_7; PyObject *tmp_called_name_3; PyObject *tmp_args_element_name_2; PyObject *tmp_defaults_2; PyObject *tmp_classmethod_arg_2; PyObject *tmp_defaults_3; tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 45; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_7 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { goto condexpr_true_4; } else { goto condexpr_false_4; } condexpr_true_4:; tmp_called_name_3 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (unlikely(tmp_called_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 45; type_description_2 = "o"; goto frame_exception_exit_2; } if (tmp_called_name_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 45; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_defaults_2 = mod_consts[190]; Py_INCREF(tmp_defaults_2); tmp_args_element_name_2 = MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(tmp_defaults_2); frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 45; tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); Py_DECREF(tmp_called_name_3); Py_DECREF(tmp_args_element_name_2); if (tmp_dictset_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 45; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_4; condexpr_false_4:; tmp_defaults_3 = mod_consts[190]; Py_INCREF(tmp_defaults_3); tmp_classmethod_arg_2 = MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(tmp_defaults_3); tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_2); Py_DECREF(tmp_classmethod_arg_2); assert(!(tmp_dictset_value == NULL)); condexpr_end_4:; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[191], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_8; PyObject *tmp_called_name_4; PyObject *tmp_args_element_name_3; PyObject *tmp_classmethod_arg_3; tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 60; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_8 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { goto condexpr_true_5; } else { goto condexpr_false_5; } condexpr_true_5:; tmp_called_name_4 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); if (unlikely(tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); CHAIN_EXCEPTION(exception_value); exception_lineno = 60; type_description_2 = "o"; goto frame_exception_exit_2; } if (tmp_called_name_4 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 60; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_3 = MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 60; tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); Py_DECREF(tmp_called_name_4); Py_DECREF(tmp_args_element_name_3); if (tmp_dictset_value == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 60; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_5; condexpr_false_5:; tmp_classmethod_arg_3 = MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_3); Py_DECREF(tmp_classmethod_arg_3); assert(!(tmp_dictset_value == NULL)); condexpr_end_5:; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[193], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 61; type_description_2 = "o"; goto frame_exception_exit_2; } } tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained(); tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[195], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 72; type_description_2 = "o"; goto frame_exception_exit_2; } #if 0 RESTORE_FRAME_EXCEPTION(frame_ea027d7d60a14da7f0ce573c2280d557_2); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_2:; #if 0 RESTORE_FRAME_EXCEPTION(frame_ea027d7d60a14da7f0ce573c2280d557_2); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_ea027d7d60a14da7f0ce573c2280d557_2, exception_lineno); } else if (exception_tb->tb_frame != &frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_ea027d7d60a14da7f0ce573c2280d557_2, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_ea027d7d60a14da7f0ce573c2280d557_2, type_description_2, outline_0_var___class__ ); // Release cached frame if used for exception. if (frame_ea027d7d60a14da7f0ce573c2280d557_2 == cache_frame_ea027d7d60a14da7f0ce573c2280d557_2) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2); cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = NULL; } assertFrameObject(frame_ea027d7d60a14da7f0ce573c2280d557_2); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_1; frame_no_exception_1:; goto skip_nested_handling_1; nested_frame_exit_1:; goto try_except_handler_4; skip_nested_handling_1:; { nuitka_bool tmp_condition_result_9; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT(tmp_class_creation_1__bases); tmp_compexpr_left_1 = tmp_class_creation_1__bases; CHECK_OBJECT(tmp_class_creation_1__bases_orig); tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; tmp_condition_result_9 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); if (tmp_condition_result_9 == NUITKA_BOOL_EXCEPTION) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_4; } if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { goto branch_yes_4; } else { goto branch_no_4; } assert(tmp_condition_result_9 != NUITKA_BOOL_UNASSIGNED); } branch_yes_4:; CHECK_OBJECT(tmp_class_creation_1__bases_orig); tmp_dictset_value = tmp_class_creation_1__bases_orig; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[197], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_4; } branch_no_4:; { PyObject *tmp_assign_source_30; PyObject *tmp_called_name_5; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_5; PyObject *tmp_kwargs_name_2; CHECK_OBJECT(tmp_class_creation_1__metaclass); tmp_called_name_5 = tmp_class_creation_1__metaclass; tmp_tuple_element_5 = mod_consts[177]; tmp_args_name_2 = PyTuple_New(3); PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_5); CHECK_OBJECT(tmp_class_creation_1__bases); tmp_tuple_element_5 = tmp_class_creation_1__bases; PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_5); tmp_tuple_element_5 = locals_models$blip2$$$class__1_Blip2Base_28; PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_5); CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 28; tmp_assign_source_30 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_2, tmp_kwargs_name_2); Py_DECREF(tmp_args_name_2); if (tmp_assign_source_30 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 28; goto try_except_handler_4; } assert(outline_0_var___class__ == NULL); outline_0_var___class__ = tmp_assign_source_30; } CHECK_OBJECT(outline_0_var___class__); tmp_assign_source_29 = outline_0_var___class__; Py_INCREF(tmp_assign_source_29); goto try_return_handler_4; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_4:; Py_DECREF(locals_models$blip2$$$class__1_Blip2Base_28); locals_models$blip2$$$class__1_Blip2Base_28 = NULL; goto try_return_handler_3; // Exception handler code: try_except_handler_4:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_DECREF(locals_models$blip2$$$class__1_Blip2Base_28); locals_models$blip2$$$class__1_Blip2Base_28 = NULL; // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_3; // End of try: NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_3:; CHECK_OBJECT(outline_0_var___class__); Py_DECREF(outline_0_var___class__); outline_0_var___class__ = NULL; goto outline_result_1; // Exception handler code: try_except_handler_3:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto outline_exception_1; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; outline_exception_1:; exception_lineno = 28; goto try_except_handler_2; outline_result_1:; UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[177], tmp_assign_source_29); } goto try_end_2; // Exception handler code: try_except_handler_2:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_class_creation_1__bases_orig); tmp_class_creation_1__bases_orig = NULL; Py_XDECREF(tmp_class_creation_1__bases); tmp_class_creation_1__bases = NULL; Py_XDECREF(tmp_class_creation_1__class_decl_dict); tmp_class_creation_1__class_decl_dict = NULL; Py_XDECREF(tmp_class_creation_1__metaclass); tmp_class_creation_1__metaclass = NULL; Py_XDECREF(tmp_class_creation_1__prepared); tmp_class_creation_1__prepared = NULL; // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto frame_exception_exit_1; // End of try: try_end_2:; CHECK_OBJECT(tmp_class_creation_1__bases_orig); Py_DECREF(tmp_class_creation_1__bases_orig); tmp_class_creation_1__bases_orig = NULL; Py_XDECREF(tmp_class_creation_1__bases); tmp_class_creation_1__bases = NULL; Py_XDECREF(tmp_class_creation_1__class_decl_dict); tmp_class_creation_1__class_decl_dict = NULL; Py_XDECREF(tmp_class_creation_1__metaclass); tmp_class_creation_1__metaclass = NULL; CHECK_OBJECT(tmp_class_creation_1__prepared); Py_DECREF(tmp_class_creation_1__prepared); tmp_class_creation_1__prepared = NULL; { PyObject *tmp_assign_source_31; PyObject *tmp_defaults_4; tmp_defaults_4 = mod_consts[198]; Py_INCREF(tmp_defaults_4); tmp_assign_source_31 = MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(tmp_defaults_4); UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[199], tmp_assign_source_31); } // Tried code: { PyObject *tmp_assign_source_32; PyObject *tmp_tuple_element_6; PyObject *tmp_expression_name_7; tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22]); if (unlikely(tmp_expression_name_7 == NULL)) { tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); } if (tmp_expression_name_7 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[38]); if (tmp_tuple_element_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_assign_source_32 = PyTuple_New(1); PyTuple_SET_ITEM(tmp_assign_source_32, 0, tmp_tuple_element_6); assert(tmp_class_creation_2__bases_orig == NULL); tmp_class_creation_2__bases_orig = tmp_assign_source_32; } { PyObject *tmp_assign_source_33; PyObject *tmp_dircall_arg1_2; CHECK_OBJECT(tmp_class_creation_2__bases_orig); tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; Py_INCREF(tmp_dircall_arg1_2); { PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; tmp_assign_source_33 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); } if (tmp_assign_source_33 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } assert(tmp_class_creation_2__bases == NULL); tmp_class_creation_2__bases = tmp_assign_source_33; } { PyObject *tmp_assign_source_34; tmp_assign_source_34 = PyDict_New(); assert(tmp_class_creation_2__class_decl_dict == NULL); tmp_class_creation_2__class_decl_dict = tmp_assign_source_34; } { PyObject *tmp_assign_source_35; PyObject *tmp_metaclass_name_2; nuitka_bool tmp_condition_result_10; PyObject *tmp_key_name_4; PyObject *tmp_dict_arg_name_4; PyObject *tmp_dict_arg_name_5; PyObject *tmp_key_name_5; nuitka_bool tmp_condition_result_11; int tmp_truth_name_2; PyObject *tmp_type_arg_3; PyObject *tmp_expression_name_8; PyObject *tmp_subscript_name_2; PyObject *tmp_bases_name_2; tmp_key_name_4 = mod_consts[175]; CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); assert(!(tmp_res == -1)); tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { goto condexpr_true_6; } else { goto condexpr_false_6; } condexpr_true_6:; CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; tmp_key_name_5 = mod_consts[175]; tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); if (tmp_metaclass_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } goto condexpr_end_6; condexpr_false_6:; CHECK_OBJECT(tmp_class_creation_2__bases); tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); if (tmp_truth_name_2 == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_condition_result_11 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { goto condexpr_true_7; } else { goto condexpr_false_7; } condexpr_true_7:; CHECK_OBJECT(tmp_class_creation_2__bases); tmp_expression_name_8 = tmp_class_creation_2__bases; tmp_subscript_name_2 = mod_consts[74]; tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); if (tmp_type_arg_3 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); Py_DECREF(tmp_type_arg_3); if (tmp_metaclass_name_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } goto condexpr_end_7; condexpr_false_7:; tmp_metaclass_name_2 = (PyObject *)&PyType_Type; Py_INCREF(tmp_metaclass_name_2); condexpr_end_7:; condexpr_end_6:; CHECK_OBJECT(tmp_class_creation_2__bases); tmp_bases_name_2 = tmp_class_creation_2__bases; tmp_assign_source_35 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); Py_DECREF(tmp_metaclass_name_2); if (tmp_assign_source_35 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } assert(tmp_class_creation_2__metaclass == NULL); tmp_class_creation_2__metaclass = tmp_assign_source_35; } { nuitka_bool tmp_condition_result_12; PyObject *tmp_key_name_6; PyObject *tmp_dict_arg_name_6; tmp_key_name_6 = mod_consts[175]; CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); assert(!(tmp_res == -1)); tmp_condition_result_12 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { goto branch_yes_5; } else { goto branch_no_5; } } branch_yes_5:; CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; tmp_dictdel_key = mod_consts[175]; tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); if (tmp_result == false) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } branch_no_5:; { nuitka_bool tmp_condition_result_13; PyObject *tmp_expression_name_9; CHECK_OBJECT(tmp_class_creation_2__metaclass); tmp_expression_name_9 = tmp_class_creation_2__metaclass; tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[176]); tmp_condition_result_13 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { goto branch_yes_6; } else { goto branch_no_6; } } branch_yes_6:; { PyObject *tmp_assign_source_36; PyObject *tmp_called_name_6; PyObject *tmp_expression_name_10; PyObject *tmp_args_name_3; PyObject *tmp_tuple_element_7; PyObject *tmp_kwargs_name_3; CHECK_OBJECT(tmp_class_creation_2__metaclass); tmp_expression_name_10 = tmp_class_creation_2__metaclass; tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[176]); if (tmp_called_name_6 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_tuple_element_7 = mod_consts[38]; tmp_args_name_3 = PyTuple_New(2); PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_7); CHECK_OBJECT(tmp_class_creation_2__bases); tmp_tuple_element_7 = tmp_class_creation_2__bases; PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_7); CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 99; tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_3); Py_DECREF(tmp_called_name_6); Py_DECREF(tmp_args_name_3); if (tmp_assign_source_36 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } assert(tmp_class_creation_2__prepared == NULL); tmp_class_creation_2__prepared = tmp_assign_source_36; } { nuitka_bool tmp_condition_result_14; PyObject *tmp_operand_name_2; PyObject *tmp_expression_name_11; CHECK_OBJECT(tmp_class_creation_2__prepared); tmp_expression_name_11 = tmp_class_creation_2__prepared; tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[178]); tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); if (tmp_res == -1) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { goto branch_yes_7; } else { goto branch_no_7; } } branch_yes_7:; { PyObject *tmp_raise_type_2; PyObject *tmp_raise_value_2; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_tuple_element_8; PyObject *tmp_getattr_target_2; PyObject *tmp_getattr_attr_2; PyObject *tmp_getattr_default_2; tmp_raise_type_2 = PyExc_TypeError; tmp_left_name_2 = mod_consts[179]; CHECK_OBJECT(tmp_class_creation_2__metaclass); tmp_getattr_target_2 = tmp_class_creation_2__metaclass; tmp_getattr_attr_2 = mod_consts[180]; tmp_getattr_default_2 = mod_consts[181]; tmp_tuple_element_8 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); if (tmp_tuple_element_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } tmp_right_name_2 = PyTuple_New(2); { PyObject *tmp_expression_name_12; PyObject *tmp_type_arg_4; PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_8); CHECK_OBJECT(tmp_class_creation_2__prepared); tmp_type_arg_4 = tmp_class_creation_2__prepared; tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); assert(!(tmp_expression_name_12 == NULL)); tmp_tuple_element_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[180]); Py_DECREF(tmp_expression_name_12); if (tmp_tuple_element_8 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto tuple_build_exception_2; } PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_8); } goto tuple_build_noexception_2; // Exception handling pass through code for tuple_build: tuple_build_exception_2:; Py_DECREF(tmp_right_name_2); goto try_except_handler_5; // Finished with no exception for tuple_build: tuple_build_noexception_2:; tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); Py_DECREF(tmp_right_name_2); if (tmp_raise_value_2 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_5; } exception_type = tmp_raise_type_2; Py_INCREF(tmp_raise_type_2); exception_value = tmp_raise_value_2; exception_lineno = 99; RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); goto try_except_handler_5; } branch_no_7:; goto branch_end_6; branch_no_6:; { PyObject *tmp_assign_source_37; tmp_assign_source_37 = PyDict_New(); assert(tmp_class_creation_2__prepared == NULL); tmp_class_creation_2__prepared = tmp_assign_source_37; } branch_end_6:; { PyObject *tmp_assign_source_38; { PyObject *tmp_set_locals_2; CHECK_OBJECT(tmp_class_creation_2__prepared); tmp_set_locals_2 = tmp_class_creation_2__prepared; locals_models$blip2$$$class__2_LayerNorm_99 = tmp_set_locals_2; Py_INCREF(tmp_set_locals_2); } // Tried code: // Tried code: tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[180]); if (unlikely(tmp_dictset_value == NULL)) { tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[180]); } assert(!(tmp_dictset_value == NULL)); tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[182], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } tmp_dictset_value = mod_consts[200]; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[149], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } tmp_dictset_value = mod_consts[38]; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[183], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } if (isFrameUnusable(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3)) { Py_XDECREF(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); #if _DEBUG_REFCOUNTS if (cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 == NULL) { count_active_frame_cache_instances += 1; } else { count_released_frame_cache_instances += 1; } count_allocated_frame_cache_instances += 1; #endif cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = MAKE_FUNCTION_FRAME(codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b, module_models$blip2, sizeof(void *)); #if _DEBUG_REFCOUNTS } else { count_hit_frame_cache_instances += 1; #endif } assert(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3->m_type_description == NULL); frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3; // Push the new frame as the currently active one. pushFrameStack(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); // Mark the frame object as in use, ref count 1 will be up for reuse. assert(Py_REFCNT(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3) == 2); // Frame stack // Framed code: { PyObject *tmp_annotations_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_expression_name_13; struct Nuitka_CellObject *tmp_closure_1[1]; tmp_dict_key_1 = mod_consts[61]; tmp_expression_name_13 = PyObject_GetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[7]); if (tmp_expression_name_13 == NULL) { if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); if (unlikely(tmp_expression_name_13 == NULL)) { tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); } if (tmp_expression_name_13 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 102; type_description_2 = "c"; goto frame_exception_exit_3; } Py_INCREF(tmp_expression_name_13); } } tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[201]); Py_DECREF(tmp_expression_name_13); if (tmp_dict_value_1 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 102; type_description_2 = "c"; goto frame_exception_exit_3; } tmp_annotations_1 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); Py_DECREF(tmp_dict_value_1); assert(!(tmp_res != 0)); tmp_closure_1[0] = outline_1_var___class__; Py_INCREF(tmp_closure_1[0]); tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__7_forward(tmp_annotations_1, tmp_closure_1); tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[60], tmp_dictset_value); Py_DECREF(tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 102; type_description_2 = "c"; goto frame_exception_exit_3; } } #if 0 RESTORE_FRAME_EXCEPTION(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_2; frame_exception_exit_3:; #if 0 RESTORE_FRAME_EXCEPTION(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, exception_lineno); } else if (exception_tb->tb_frame != &frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, exception_lineno); } // Attaches locals to frame if any. Nuitka_Frame_AttachLocals( frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, type_description_2, outline_1_var___class__ ); // Release cached frame if used for exception. if (frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 == cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3) { #if _DEBUG_REFCOUNTS count_active_frame_cache_instances -= 1; count_released_frame_cache_instances += 1; #endif Py_DECREF(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = NULL; } assertFrameObject(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_2; frame_no_exception_2:; goto skip_nested_handling_2; nested_frame_exit_2:; goto try_except_handler_7; skip_nested_handling_2:; { nuitka_bool tmp_condition_result_15; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; CHECK_OBJECT(tmp_class_creation_2__bases); tmp_compexpr_left_2 = tmp_class_creation_2__bases; CHECK_OBJECT(tmp_class_creation_2__bases_orig); tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; tmp_condition_result_15 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); if (tmp_condition_result_15 == NUITKA_BOOL_EXCEPTION) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { goto branch_yes_8; } else { goto branch_no_8; } assert(tmp_condition_result_15 != NUITKA_BOOL_UNASSIGNED); } branch_yes_8:; CHECK_OBJECT(tmp_class_creation_2__bases_orig); tmp_dictset_value = tmp_class_creation_2__bases_orig; tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[197], tmp_dictset_value); if (tmp_res != 0) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } branch_no_8:; { PyObject *tmp_assign_source_39; PyObject *tmp_called_name_7; PyObject *tmp_args_name_4; PyObject *tmp_tuple_element_9; PyObject *tmp_kwargs_name_4; CHECK_OBJECT(tmp_class_creation_2__metaclass); tmp_called_name_7 = tmp_class_creation_2__metaclass; tmp_tuple_element_9 = mod_consts[38]; tmp_args_name_4 = PyTuple_New(3); PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_9); CHECK_OBJECT(tmp_class_creation_2__bases); tmp_tuple_element_9 = tmp_class_creation_2__bases; PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_9); tmp_tuple_element_9 = locals_models$blip2$$$class__2_LayerNorm_99; PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_9); CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 99; tmp_assign_source_39 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_4, tmp_kwargs_name_4); Py_DECREF(tmp_args_name_4); if (tmp_assign_source_39 == NULL) { assert(ERROR_OCCURRED()); FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); exception_lineno = 99; goto try_except_handler_7; } { PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); PyCell_SET(outline_1_var___class__, tmp_assign_source_39); Py_XDECREF(old); } } CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); tmp_assign_source_38 = Nuitka_Cell_GET(outline_1_var___class__); Py_INCREF(tmp_assign_source_38); goto try_return_handler_7; NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_7:; Py_DECREF(locals_models$blip2$$$class__2_LayerNorm_99); locals_models$blip2$$$class__2_LayerNorm_99 = NULL; goto try_return_handler_6; // Exception handler code: try_except_handler_7:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_DECREF(locals_models$blip2$$$class__2_LayerNorm_99); locals_models$blip2$$$class__2_LayerNorm_99 = NULL; // Re-raise. exception_type = exception_keeper_type_5; exception_value = exception_keeper_value_5; exception_tb = exception_keeper_tb_5; exception_lineno = exception_keeper_lineno_5; goto try_except_handler_6; // End of try: NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); return NULL; // Return handler code: try_return_handler_6:; CHECK_OBJECT(outline_1_var___class__); Py_DECREF(outline_1_var___class__); outline_1_var___class__ = NULL; goto outline_result_2; // Exception handler code: try_except_handler_6:; exception_keeper_type_6 = exception_type; exception_keeper_value_6 = exception_value; exception_keeper_tb_6 = exception_tb; exception_keeper_lineno_6 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; CHECK_OBJECT(outline_1_var___class__); Py_DECREF(outline_1_var___class__); outline_1_var___class__ = NULL; // Re-raise. exception_type = exception_keeper_type_6; exception_value = exception_keeper_value_6; exception_tb = exception_keeper_tb_6; exception_lineno = exception_keeper_lineno_6; goto outline_exception_2; // End of try: NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); return NULL; outline_exception_2:; exception_lineno = 99; goto try_except_handler_5; outline_result_2:; UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[38], tmp_assign_source_38); } goto try_end_3; // Exception handler code: try_except_handler_5:; exception_keeper_type_7 = exception_type; exception_keeper_value_7 = exception_value; exception_keeper_tb_7 = exception_tb; exception_keeper_lineno_7 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; Py_XDECREF(tmp_class_creation_2__bases_orig); tmp_class_creation_2__bases_orig = NULL; Py_XDECREF(tmp_class_creation_2__bases); tmp_class_creation_2__bases = NULL; Py_XDECREF(tmp_class_creation_2__class_decl_dict); tmp_class_creation_2__class_decl_dict = NULL; Py_XDECREF(tmp_class_creation_2__metaclass); tmp_class_creation_2__metaclass = NULL; Py_XDECREF(tmp_class_creation_2__prepared); tmp_class_creation_2__prepared = NULL; // Re-raise. exception_type = exception_keeper_type_7; exception_value = exception_keeper_value_7; exception_tb = exception_keeper_tb_7; exception_lineno = exception_keeper_lineno_7; goto frame_exception_exit_1; // End of try: try_end_3:; // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION(frame_058485e121bd2827510070e07e93711c); #endif popFrameStack(); assertFrameObject(frame_058485e121bd2827510070e07e93711c); goto frame_no_exception_3; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION(frame_058485e121bd2827510070e07e93711c); #endif if (exception_tb == NULL) { exception_tb = MAKE_TRACEBACK(frame_058485e121bd2827510070e07e93711c, exception_lineno); } else if (exception_tb->tb_frame != &frame_058485e121bd2827510070e07e93711c->m_frame) { exception_tb = ADD_TRACEBACK(exception_tb, frame_058485e121bd2827510070e07e93711c, exception_lineno); } // Put the previous frame back on top. popFrameStack(); // Return the error. goto module_exception_exit; frame_no_exception_3:; CHECK_OBJECT(tmp_class_creation_2__bases_orig); Py_DECREF(tmp_class_creation_2__bases_orig); tmp_class_creation_2__bases_orig = NULL; Py_XDECREF(tmp_class_creation_2__bases); tmp_class_creation_2__bases = NULL; Py_XDECREF(tmp_class_creation_2__class_decl_dict); tmp_class_creation_2__class_decl_dict = NULL; Py_XDECREF(tmp_class_creation_2__metaclass); tmp_class_creation_2__metaclass = NULL; CHECK_OBJECT(tmp_class_creation_2__prepared); Py_DECREF(tmp_class_creation_2__prepared); tmp_class_creation_2__prepared = NULL; { PyObject *tmp_assign_source_40; tmp_assign_source_40 = MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix(); UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[203], tmp_assign_source_40); } return module_models$blip2; module_exception_exit: RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); return NULL; }