Hongyu Zhou commited on
Commit ·
b5f8a7e
1
Parent(s): 0d9183e
fix torchvision version issue
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- __pycache__/utils.cpython-312.pyc +0 -0
- __pycache__/utils.cpython-39.pyc +0 -0
- environment_cu118.yml +1 -1
- medomni/models.build/.sconsign-39.dblite +0 -0
- medomni/models.build/@link_input.txt +0 -31
- medomni/models.build/__bytecode.const +0 -0
- medomni/models.build/__constants.bin +0 -3
- medomni/models.build/__constants.const +0 -0
- medomni/models.build/__constants.cpp +0 -140
- medomni/models.build/__constants.h +0 -130
- medomni/models.build/__constants_data.cpp +0 -15
- medomni/models.build/__constants_data.os +0 -0
- medomni/models.build/__helpers.cpp +0 -0
- medomni/models.build/__helpers.h +0 -20
- medomni/models.build/__loader.cpp +0 -134
- medomni/models.build/__loader.os +0 -0
- medomni/models.build/build_definitions.h +0 -7
- medomni/models.build/module.models.Qformer.const +0 -0
- medomni/models.build/module.models.Qformer.cpp +0 -0
- medomni/models.build/module.models.UNet.const +0 -0
- medomni/models.build/module.models.UNet.cpp +0 -0
- medomni/models.build/module.models.base_model.const +0 -0
- medomni/models.build/module.models.base_model.cpp +0 -0
- medomni/models.build/module.models.blip2.const +0 -0
- medomni/models.build/module.models.blip2.cpp +0 -0
- medomni/models.build/module.models.blip2_outputs.const +0 -0
- medomni/models.build/module.models.blip2_outputs.cpp +0 -0
- medomni/models.build/module.models.const +0 -0
- medomni/models.build/module.models.cpp +0 -0
- medomni/models.build/module.models.eva_vit.const +0 -0
- medomni/models.build/module.models.eva_vit.cpp +0 -0
- medomni/models.build/module.models.medomni.const +0 -0
- medomni/models.build/module.models.medomni.cpp +0 -0
- medomni/models.build/module.models.medomni_bp.const +0 -0
- medomni/models.build/module.models.medomni_bp.cpp +0 -0
- medomni/models.build/module.models.modeling_llama.const +0 -0
- medomni/models.build/module.models.modeling_llama.cpp +0 -0
- medomni/models.build/module.models.unet3d.buildingblocks.const +0 -0
- medomni/models.build/module.models.unet3d.buildingblocks.cpp +0 -0
- medomni/models.build/module.models.unet3d.config.const +0 -0
- medomni/models.build/module.models.unet3d.config.cpp +0 -1704
- medomni/models.build/module.models.unet3d.const +0 -0
- medomni/models.build/module.models.unet3d.cpp +0 -808
- medomni/models.build/module.models.unet3d.losses.const +0 -0
- medomni/models.build/module.models.unet3d.losses.cpp +0 -0
- medomni/models.build/module.models.unet3d.metrics.const +0 -0
- medomni/models.build/module.models.unet3d.metrics.cpp +0 -0
- medomni/models.build/module.models.unet3d.model.const +0 -0
- medomni/models.build/module.models.unet3d.model.cpp +0 -0
- medomni/models.build/module.models.unet3d.predictor.const +0 -0
__pycache__/utils.cpython-312.pyc
ADDED
|
Binary file (21 kB). View file
|
|
|
__pycache__/utils.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/utils.cpython-39.pyc and b/__pycache__/utils.cpython-39.pyc differ
|
|
|
environment_cu118.yml
CHANGED
|
@@ -490,7 +490,7 @@ dependencies:
|
|
| 490 |
- tomli==2.0.1
|
| 491 |
- toolz==0.12.0
|
| 492 |
- torchio==0.19.2
|
| 493 |
-
- torchvision==0.15.2
|
| 494 |
- tornado==6.3.1
|
| 495 |
- tqdm==4.64.1
|
| 496 |
- traceback2==1.4.0
|
|
|
|
| 490 |
- tomli==2.0.1
|
| 491 |
- toolz==0.12.0
|
| 492 |
- torchio==0.19.2
|
| 493 |
+
- torchvision==0.15.2+cu118
|
| 494 |
- tornado==6.3.1
|
| 495 |
- tqdm==4.64.1
|
| 496 |
- traceback2==1.4.0
|
medomni/models.build/.sconsign-39.dblite
DELETED
|
File without changes
|
medomni/models.build/@link_input.txt
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
"./__constants.o"
|
| 2 |
-
"./__constants_data.o"
|
| 3 |
-
"./__helpers.o"
|
| 4 |
-
"./__loader.o"
|
| 5 |
-
"./module.models.Qformer.o"
|
| 6 |
-
"./module.models.UNet.o"
|
| 7 |
-
"./module.models.base_model.o"
|
| 8 |
-
"./module.models.blip2.o"
|
| 9 |
-
"./module.models.blip2_outputs.o"
|
| 10 |
-
"./module.models.o"
|
| 11 |
-
"./module.models.eva_vit.o"
|
| 12 |
-
"./module.models.medomni.o"
|
| 13 |
-
"./module.models.medomni_bp.o"
|
| 14 |
-
"./module.models.modeling_llama.o"
|
| 15 |
-
"./module.models.unet3d.buildingblocks.o"
|
| 16 |
-
"./module.models.unet3d.o"
|
| 17 |
-
"./module.models.unet3d.config.o"
|
| 18 |
-
"./module.models.unet3d.losses.o"
|
| 19 |
-
"./module.models.unet3d.metrics.o"
|
| 20 |
-
"./module.models.unet3d.model.o"
|
| 21 |
-
"./module.models.unet3d.predictor.o"
|
| 22 |
-
"./module.models.unet3d.se.o"
|
| 23 |
-
"./module.models.unet3d.seg_metrics.o"
|
| 24 |
-
"./module.models.unet3d.trainer.o"
|
| 25 |
-
"./module.models.unet3d.utils.o"
|
| 26 |
-
"./static_src/CompiledCellType.o"
|
| 27 |
-
"./static_src/CompiledFunctionType.o"
|
| 28 |
-
"./static_src/CompiledGeneratorType.o"
|
| 29 |
-
"./static_src/CompiledCodeHelpers.o"
|
| 30 |
-
"./static_src/InspectPatcher.o"
|
| 31 |
-
"./static_src/MetaPathBasedLoader.o"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__bytecode.const
DELETED
|
File without changes
|
medomni/models.build/__constants.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e743a8d6dc443ba48fed9e856719866420c51c4133449b65ad6efdc7cb568f28
|
| 3 |
-
size 131173
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__constants.const
DELETED
|
Binary file (1.25 kB)
|
|
|
medomni/models.build/__constants.cpp
DELETED
|
@@ -1,140 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
#include "nuitka/prelude.h"
|
| 3 |
-
#include "structseq.h"
|
| 4 |
-
|
| 5 |
-
// Global constants storage
|
| 6 |
-
PyObject *global_constants[60];
|
| 7 |
-
|
| 8 |
-
// Sentinel PyObject to be used for all our call iterator endings. It will
|
| 9 |
-
// become a PyCObject pointing to NULL. It's address is unique, and that's
|
| 10 |
-
// enough for us to use it as sentinel value.
|
| 11 |
-
PyObject *_sentinel_value = NULL;
|
| 12 |
-
|
| 13 |
-
PyObject *Nuitka_dunder_compiled_value = NULL;
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
#ifdef _NUITKA_STANDALONE
|
| 17 |
-
extern PyObject *getStandaloneSysExecutablePath(PyObject *basename);
|
| 18 |
-
#endif
|
| 19 |
-
|
| 20 |
-
static void _createGlobalConstants(void) {
|
| 21 |
-
// The empty name means global.
|
| 22 |
-
loadConstantsBlob(&global_constants[0], "");
|
| 23 |
-
|
| 24 |
-
#if _NUITKA_EXE
|
| 25 |
-
/* Set the "sys.executable" path to the original CPython executable or point to inside the
|
| 26 |
-
distribution for standalone. */
|
| 27 |
-
PySys_SetObject(
|
| 28 |
-
(char *)"executable",
|
| 29 |
-
#ifndef _NUITKA_STANDALONE
|
| 30 |
-
None
|
| 31 |
-
#else
|
| 32 |
-
getStandaloneSysExecutablePath(None)
|
| 33 |
-
#endif
|
| 34 |
-
);
|
| 35 |
-
|
| 36 |
-
#ifndef _NUITKA_STANDALONE
|
| 37 |
-
/* Set the "sys.prefix" path to the original one. */
|
| 38 |
-
PySys_SetObject(
|
| 39 |
-
(char *)"prefix",
|
| 40 |
-
None
|
| 41 |
-
);
|
| 42 |
-
|
| 43 |
-
/* Set the "sys.prefix" path to the original one. */
|
| 44 |
-
PySys_SetObject(
|
| 45 |
-
(char *)"exec_prefix",
|
| 46 |
-
None
|
| 47 |
-
);
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
#if PYTHON_VERSION >= 0x300
|
| 51 |
-
/* Set the "sys.base_prefix" path to the original one. */
|
| 52 |
-
PySys_SetObject(
|
| 53 |
-
(char *)"base_prefix",
|
| 54 |
-
None
|
| 55 |
-
);
|
| 56 |
-
|
| 57 |
-
/* Set the "sys.exec_base_prefix" path to the original one. */
|
| 58 |
-
PySys_SetObject(
|
| 59 |
-
(char *)"base_exec_prefix",
|
| 60 |
-
None
|
| 61 |
-
);
|
| 62 |
-
|
| 63 |
-
#endif
|
| 64 |
-
#endif
|
| 65 |
-
#endif
|
| 66 |
-
|
| 67 |
-
static PyTypeObject Nuitka_VersionInfoType;
|
| 68 |
-
|
| 69 |
-
// Same fields as "sys.version_info" except no serial number.
|
| 70 |
-
static PyStructSequence_Field Nuitka_VersionInfoFields[] = {
|
| 71 |
-
{(char *)"major", (char *)"Major release number"},
|
| 72 |
-
{(char *)"minor", (char *)"Minor release number"},
|
| 73 |
-
{(char *)"micro", (char *)"Micro release number"},
|
| 74 |
-
{(char *)"releaselevel", (char *)"'alpha', 'beta', 'candidate', or 'release'"},
|
| 75 |
-
{(char *)"standalone", (char *)"boolean indicating standalone mode usage"},
|
| 76 |
-
{(char *)"onefile", (char *)"boolean indicating standalone mode usage"},
|
| 77 |
-
{0}
|
| 78 |
-
};
|
| 79 |
-
|
| 80 |
-
static PyStructSequence_Desc Nuitka_VersionInfoDesc = {
|
| 81 |
-
(char *)"__nuitka_version__", /* name */
|
| 82 |
-
(char *)"__compiled__\\n\\nVersion information as a named tuple.", /* doc */
|
| 83 |
-
Nuitka_VersionInfoFields, /* fields */
|
| 84 |
-
6
|
| 85 |
-
};
|
| 86 |
-
|
| 87 |
-
PyStructSequence_InitType(&Nuitka_VersionInfoType, &Nuitka_VersionInfoDesc);
|
| 88 |
-
|
| 89 |
-
Nuitka_dunder_compiled_value = PyStructSequence_New(&Nuitka_VersionInfoType);
|
| 90 |
-
assert(Nuitka_dunder_compiled_value != NULL);
|
| 91 |
-
|
| 92 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 0, PyInt_FromLong(0));
|
| 93 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 1, PyInt_FromLong(6));
|
| 94 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 2, PyInt_FromLong(16));
|
| 95 |
-
|
| 96 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 3, Nuitka_String_FromString("release"));
|
| 97 |
-
|
| 98 |
-
#ifdef _NUITKA_STANDALONE
|
| 99 |
-
PyObject *is_standalone_mode = Py_True;
|
| 100 |
-
#else
|
| 101 |
-
PyObject *is_standalone_mode = Py_False;
|
| 102 |
-
#endif
|
| 103 |
-
#ifdef _NUITKA_ONEFILE
|
| 104 |
-
PyObject *is_onefile_mode = Py_True;
|
| 105 |
-
#else
|
| 106 |
-
PyObject *is_onefile_mode = Py_False;
|
| 107 |
-
#endif
|
| 108 |
-
|
| 109 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 4, is_standalone_mode);
|
| 110 |
-
PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 5, is_onefile_mode);
|
| 111 |
-
|
| 112 |
-
// Prevent users from creating the Nuitka version type object.
|
| 113 |
-
Nuitka_VersionInfoType.tp_init = NULL;
|
| 114 |
-
Nuitka_VersionInfoType.tp_new = NULL;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
// In debug mode we can check that the constants were not tampered with in any
|
| 118 |
-
// given moment. We typically do it at program exit, but we can add extra calls
|
| 119 |
-
// for sanity.
|
| 120 |
-
#ifndef __NUITKA_NO_ASSERT__
|
| 121 |
-
void checkGlobalConstants(void) {
|
| 122 |
-
// TODO: Ask constant code to check values.
|
| 123 |
-
|
| 124 |
-
}
|
| 125 |
-
#endif
|
| 126 |
-
|
| 127 |
-
void createGlobalConstants(void) {
|
| 128 |
-
if (_sentinel_value == NULL) {
|
| 129 |
-
#if PYTHON_VERSION < 0x300
|
| 130 |
-
_sentinel_value = PyCObject_FromVoidPtr(NULL, NULL);
|
| 131 |
-
#else
|
| 132 |
-
// The NULL value is not allowed for a capsule, so use something else.
|
| 133 |
-
_sentinel_value = PyCapsule_New((void *)27, "sentinel", NULL);
|
| 134 |
-
#endif
|
| 135 |
-
assert(_sentinel_value);
|
| 136 |
-
|
| 137 |
-
_createGlobalConstants();
|
| 138 |
-
}
|
| 139 |
-
}
|
| 140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__constants.h
DELETED
|
@@ -1,130 +0,0 @@
|
|
| 1 |
-
#ifndef __NUITKA_GLOBAL_CONSTANTS_H__
|
| 2 |
-
#define __NUITKA_GLOBAL_CONSTANTS_H__
|
| 3 |
-
|
| 4 |
-
extern PyObject *global_constants[60];
|
| 5 |
-
// ()
|
| 6 |
-
#define const_tuple_empty global_constants[0]
|
| 7 |
-
// {}
|
| 8 |
-
#define const_dict_empty global_constants[1]
|
| 9 |
-
// 0
|
| 10 |
-
#define const_int_0 global_constants[2]
|
| 11 |
-
// 1
|
| 12 |
-
#define const_int_pos_1 global_constants[3]
|
| 13 |
-
// -1
|
| 14 |
-
#define const_int_neg_1 global_constants[4]
|
| 15 |
-
// 0.0
|
| 16 |
-
#define const_float_0_0 global_constants[5]
|
| 17 |
-
// -0.0
|
| 18 |
-
#define const_float_minus_0_0 global_constants[6]
|
| 19 |
-
// 1.0
|
| 20 |
-
#define const_float_1_0 global_constants[7]
|
| 21 |
-
// -1.0
|
| 22 |
-
#define const_float_minus_1_0 global_constants[8]
|
| 23 |
-
// 0
|
| 24 |
-
#define const_int_0 global_constants[2]
|
| 25 |
-
// ''
|
| 26 |
-
#define const_str_empty global_constants[9]
|
| 27 |
-
// b''
|
| 28 |
-
#define const_bytes_empty global_constants[10]
|
| 29 |
-
// '__module__'
|
| 30 |
-
#define const_str_plain___module__ global_constants[11]
|
| 31 |
-
// '__class__'
|
| 32 |
-
#define const_str_plain___class__ global_constants[12]
|
| 33 |
-
// '__name__'
|
| 34 |
-
#define const_str_plain___name__ global_constants[13]
|
| 35 |
-
// '__package__'
|
| 36 |
-
#define const_str_plain___package__ global_constants[14]
|
| 37 |
-
// '__metaclass__'
|
| 38 |
-
#define const_str_plain___metaclass__ global_constants[15]
|
| 39 |
-
// '__dict__'
|
| 40 |
-
#define const_str_plain___dict__ global_constants[16]
|
| 41 |
-
// '__doc__'
|
| 42 |
-
#define const_str_plain___doc__ global_constants[17]
|
| 43 |
-
// '__file__'
|
| 44 |
-
#define const_str_plain___file__ global_constants[18]
|
| 45 |
-
// '__path__'
|
| 46 |
-
#define const_str_plain___path__ global_constants[19]
|
| 47 |
-
// '__enter__'
|
| 48 |
-
#define const_str_plain___enter__ global_constants[20]
|
| 49 |
-
// '__exit__'
|
| 50 |
-
#define const_str_plain___exit__ global_constants[21]
|
| 51 |
-
// '__builtins__'
|
| 52 |
-
#define const_str_plain___builtins__ global_constants[22]
|
| 53 |
-
// '__all__'
|
| 54 |
-
#define const_str_plain___all__ global_constants[23]
|
| 55 |
-
// '__cmp__'
|
| 56 |
-
#define const_str_plain___cmp__ global_constants[24]
|
| 57 |
-
// '__iter__'
|
| 58 |
-
#define const_str_plain___iter__ global_constants[25]
|
| 59 |
-
// '__compiled__'
|
| 60 |
-
#define const_str_plain___compiled__ global_constants[26]
|
| 61 |
-
// 'inspect'
|
| 62 |
-
#define const_str_plain_inspect global_constants[27]
|
| 63 |
-
// 'compile'
|
| 64 |
-
#define const_str_plain_compile global_constants[28]
|
| 65 |
-
// 'range'
|
| 66 |
-
#define const_str_plain_range global_constants[29]
|
| 67 |
-
// 'open'
|
| 68 |
-
#define const_str_plain_open global_constants[30]
|
| 69 |
-
// 'sum'
|
| 70 |
-
#define const_str_plain_sum global_constants[31]
|
| 71 |
-
// 'format'
|
| 72 |
-
#define const_str_plain_format global_constants[32]
|
| 73 |
-
// '__import__'
|
| 74 |
-
#define const_str_plain___import__ global_constants[33]
|
| 75 |
-
// 'bytearray'
|
| 76 |
-
#define const_str_plain_bytearray global_constants[34]
|
| 77 |
-
// 'staticmethod'
|
| 78 |
-
#define const_str_plain_staticmethod global_constants[35]
|
| 79 |
-
// 'classmethod'
|
| 80 |
-
#define const_str_plain_classmethod global_constants[36]
|
| 81 |
-
// 'name'
|
| 82 |
-
#define const_str_plain_name global_constants[37]
|
| 83 |
-
// 'globals'
|
| 84 |
-
#define const_str_plain_globals global_constants[38]
|
| 85 |
-
// 'locals'
|
| 86 |
-
#define const_str_plain_locals global_constants[39]
|
| 87 |
-
// 'fromlist'
|
| 88 |
-
#define const_str_plain_fromlist global_constants[40]
|
| 89 |
-
// 'level'
|
| 90 |
-
#define const_str_plain_level global_constants[41]
|
| 91 |
-
// 'read'
|
| 92 |
-
#define const_str_plain_read global_constants[42]
|
| 93 |
-
// 'rb'
|
| 94 |
-
#define const_str_plain_rb global_constants[43]
|
| 95 |
-
// 'getattr'
|
| 96 |
-
#define const_str_plain_getattr global_constants[44]
|
| 97 |
-
// '__cached__'
|
| 98 |
-
#define const_str_plain___cached__ global_constants[45]
|
| 99 |
-
// '__loader__'
|
| 100 |
-
#define const_str_plain___loader__ global_constants[46]
|
| 101 |
-
// 'print'
|
| 102 |
-
#define const_str_plain_print global_constants[47]
|
| 103 |
-
// 'end'
|
| 104 |
-
#define const_str_plain_end global_constants[48]
|
| 105 |
-
// 'file'
|
| 106 |
-
#define const_str_plain_file global_constants[49]
|
| 107 |
-
// 'bytes'
|
| 108 |
-
#define const_str_plain_bytes global_constants[50]
|
| 109 |
-
// '.'
|
| 110 |
-
#define const_str_dot global_constants[51]
|
| 111 |
-
// '__loader__'
|
| 112 |
-
#define const_str_plain___loader__ global_constants[46]
|
| 113 |
-
// 'send'
|
| 114 |
-
#define const_str_plain_send global_constants[52]
|
| 115 |
-
// 'throw'
|
| 116 |
-
#define const_str_plain_throw global_constants[53]
|
| 117 |
-
// 'close'
|
| 118 |
-
#define const_str_plain_close global_constants[54]
|
| 119 |
-
// '__spec__'
|
| 120 |
-
#define const_str_plain___spec__ global_constants[55]
|
| 121 |
-
// '_initializing'
|
| 122 |
-
#define const_str_plain__initializing global_constants[56]
|
| 123 |
-
// 'parent'
|
| 124 |
-
#define const_str_plain_parent global_constants[57]
|
| 125 |
-
// 'types'
|
| 126 |
-
#define const_str_plain_types global_constants[58]
|
| 127 |
-
// '__class_getitem__'
|
| 128 |
-
#define const_str_plain___class_getitem__ global_constants[59]
|
| 129 |
-
#endif
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__constants_data.cpp
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
#define INCBIN_PREFIX
|
| 3 |
-
#define INCBIN_STYLE INCBIN_STYLE_SNAKE
|
| 4 |
-
#define INCBIN_LOCAL
|
| 5 |
-
#ifdef _NUITKA_EXPERIMENTAL_WRITEABLE_CONSTANTS
|
| 6 |
-
#define INCBIN_OUTPUT_SECTION ".data"
|
| 7 |
-
#endif
|
| 8 |
-
|
| 9 |
-
#include "nuitka/incbin.h"
|
| 10 |
-
|
| 11 |
-
INCBIN(constant_bin, "__constants.bin");
|
| 12 |
-
|
| 13 |
-
unsigned char const *getConstantsBlobData() {
|
| 14 |
-
return constant_bin_data;
|
| 15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__constants_data.os
DELETED
|
Binary file (133 kB)
|
|
|
medomni/models.build/__helpers.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/__helpers.h
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
#ifndef __NUITKA_CALLS_H__
|
| 2 |
-
#define __NUITKA_CALLS_H__
|
| 3 |
-
|
| 4 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS1(PyObject *called, PyObject **args);
|
| 5 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS2(PyObject *called, PyObject **args);
|
| 6 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS3(PyObject *called, PyObject **args);
|
| 7 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS4(PyObject *called, PyObject **args);
|
| 8 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS5(PyObject *called, PyObject **args);
|
| 9 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS6(PyObject *called, PyObject **args);
|
| 10 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS7(PyObject *called, PyObject **args);
|
| 11 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS8(PyObject *called, PyObject **args);
|
| 12 |
-
extern PyObject *CALL_FUNCTION_WITH_ARGS9(PyObject *called, PyObject **args);
|
| 13 |
-
extern PyObject *CALL_METHOD_WITH_ARGS1(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 14 |
-
extern PyObject *CALL_METHOD_WITH_ARGS2(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 15 |
-
extern PyObject *CALL_METHOD_WITH_ARGS3(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 16 |
-
extern PyObject *CALL_METHOD_WITH_ARGS4(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 17 |
-
extern PyObject *CALL_METHOD_WITH_ARGS5(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 18 |
-
extern PyObject *CALL_METHOD_WITH_ARGS7(PyObject *source, PyObject *attr_name, PyObject **args);
|
| 19 |
-
#endif
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__loader.cpp
DELETED
|
@@ -1,134 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
/* Code to register embedded modules for meta path based loading if any. */
|
| 3 |
-
|
| 4 |
-
#include <Python.h>
|
| 5 |
-
|
| 6 |
-
#include "nuitka/constants_blob.h"
|
| 7 |
-
|
| 8 |
-
#include "nuitka/unfreezing.h"
|
| 9 |
-
|
| 10 |
-
/* Type bool */
|
| 11 |
-
#ifndef __cplusplus
|
| 12 |
-
#include "stdbool.h"
|
| 13 |
-
#endif
|
| 14 |
-
|
| 15 |
-
#if 0 > 0
|
| 16 |
-
static unsigned char *bytecode_data[0];
|
| 17 |
-
#else
|
| 18 |
-
static unsigned char **bytecode_data = NULL;
|
| 19 |
-
#endif
|
| 20 |
-
|
| 21 |
-
/* Table for lookup to find compiled or bytecode modules included in this
|
| 22 |
-
* binary or module, or put along this binary as extension modules. We do
|
| 23 |
-
* our own loading for each of these.
|
| 24 |
-
*/
|
| 25 |
-
extern PyObject *modulecode_models(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 26 |
-
extern PyObject *modulecode_models$Qformer(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 27 |
-
extern PyObject *modulecode_models$UNet(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 28 |
-
extern PyObject *modulecode_models$base_model(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 29 |
-
extern PyObject *modulecode_models$blip2(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 30 |
-
extern PyObject *modulecode_models$blip2_outputs(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 31 |
-
extern PyObject *modulecode_models$eva_vit(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 32 |
-
extern PyObject *modulecode_models$medomni(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 33 |
-
extern PyObject *modulecode_models$medomni_bp(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 34 |
-
extern PyObject *modulecode_models$modeling_llama(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 35 |
-
extern PyObject *modulecode_models$unet3d(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 36 |
-
extern PyObject *modulecode_models$unet3d$buildingblocks(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 37 |
-
extern PyObject *modulecode_models$unet3d$config(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 38 |
-
extern PyObject *modulecode_models$unet3d$losses(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 39 |
-
extern PyObject *modulecode_models$unet3d$metrics(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 40 |
-
extern PyObject *modulecode_models$unet3d$model(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 41 |
-
extern PyObject *modulecode_models$unet3d$predictor(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 42 |
-
extern PyObject *modulecode_models$unet3d$se(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 43 |
-
extern PyObject *modulecode_models$unet3d$seg_metrics(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 44 |
-
extern PyObject *modulecode_models$unet3d$trainer(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 45 |
-
extern PyObject *modulecode_models$unet3d$utils(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *);
|
| 46 |
-
|
| 47 |
-
static struct Nuitka_MetaPathBasedLoaderEntry meta_path_loader_entries[] = {
|
| 48 |
-
{"models", modulecode_models, 0, 0, NUITKA_TRANSLATED_FLAG | NUITKA_PACKAGE_FLAG},
|
| 49 |
-
{"models.Qformer", modulecode_models$Qformer, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 50 |
-
{"models.UNet", modulecode_models$UNet, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 51 |
-
{"models.base_model", modulecode_models$base_model, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 52 |
-
{"models.blip2", modulecode_models$blip2, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 53 |
-
{"models.blip2_outputs", modulecode_models$blip2_outputs, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 54 |
-
{"models.eva_vit", modulecode_models$eva_vit, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 55 |
-
{"models.medomni", modulecode_models$medomni, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 56 |
-
{"models.medomni_bp", modulecode_models$medomni_bp, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 57 |
-
{"models.modeling_llama", modulecode_models$modeling_llama, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 58 |
-
{"models.unet3d", modulecode_models$unet3d, 0, 0, NUITKA_TRANSLATED_FLAG | NUITKA_PACKAGE_FLAG},
|
| 59 |
-
{"models.unet3d.buildingblocks", modulecode_models$unet3d$buildingblocks, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 60 |
-
{"models.unet3d.config", modulecode_models$unet3d$config, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 61 |
-
{"models.unet3d.losses", modulecode_models$unet3d$losses, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 62 |
-
{"models.unet3d.metrics", modulecode_models$unet3d$metrics, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 63 |
-
{"models.unet3d.model", modulecode_models$unet3d$model, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 64 |
-
{"models.unet3d.predictor", modulecode_models$unet3d$predictor, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 65 |
-
{"models.unet3d.se", modulecode_models$unet3d$se, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 66 |
-
{"models.unet3d.seg_metrics", modulecode_models$unet3d$seg_metrics, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 67 |
-
{"models.unet3d.trainer", modulecode_models$unet3d$trainer, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 68 |
-
{"models.unet3d.utils", modulecode_models$unet3d$utils, 0, 0, NUITKA_TRANSLATED_FLAG},
|
| 69 |
-
{NULL, NULL, 0, 0, 0}
|
| 70 |
-
};
|
| 71 |
-
|
| 72 |
-
static void _loadBytesCodesBlob()
|
| 73 |
-
{
|
| 74 |
-
static bool init_done = false;
|
| 75 |
-
|
| 76 |
-
if (init_done == false) {
|
| 77 |
-
loadConstantsBlob((PyObject **)bytecode_data, ".bytecode");
|
| 78 |
-
|
| 79 |
-
init_done = true;
|
| 80 |
-
}
|
| 81 |
-
}
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
void setupMetaPathBasedLoader(void) {
|
| 85 |
-
static bool init_done = false;
|
| 86 |
-
if (init_done == false) {
|
| 87 |
-
_loadBytesCodesBlob();
|
| 88 |
-
registerMetaPathBasedUnfreezer(meta_path_loader_entries, bytecode_data);
|
| 89 |
-
|
| 90 |
-
init_done = true;
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
// This provides the frozen (compiled bytecode) files that are included if
|
| 97 |
-
// any.
|
| 98 |
-
|
| 99 |
-
// These modules should be loaded as bytecode. They may e.g. have to be loadable
|
| 100 |
-
// during "Py_Initialize" already, or for irrelevance, they are only included
|
| 101 |
-
// in this un-optimized form. These are not compiled by Nuitka, and therefore
|
| 102 |
-
// are not accelerated at all, merely bundled with the binary or module, so
|
| 103 |
-
// that CPython library can start out finding them.
|
| 104 |
-
|
| 105 |
-
struct frozen_desc {
|
| 106 |
-
char const *name;
|
| 107 |
-
int index;
|
| 108 |
-
int size;
|
| 109 |
-
};
|
| 110 |
-
|
| 111 |
-
static struct frozen_desc _frozen_modules[] = {
|
| 112 |
-
|
| 113 |
-
{NULL, 0, 0}
|
| 114 |
-
};
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
void copyFrozenModulesTo(struct _frozen *destination) {
|
| 118 |
-
_loadBytesCodesBlob();
|
| 119 |
-
|
| 120 |
-
struct frozen_desc *current = _frozen_modules;
|
| 121 |
-
|
| 122 |
-
for (;;) {
|
| 123 |
-
destination->name = (char *)current->name;
|
| 124 |
-
destination->code = bytecode_data[current->index];
|
| 125 |
-
destination->size = current->size;
|
| 126 |
-
|
| 127 |
-
if (destination->name == NULL) break;
|
| 128 |
-
|
| 129 |
-
current += 1;
|
| 130 |
-
destination += 1;
|
| 131 |
-
};
|
| 132 |
-
}
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/__loader.os
DELETED
|
Binary file (7.02 kB)
|
|
|
medomni/models.build/build_definitions.h
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
#define NO_PYTHON_WARNINGS 0
|
| 2 |
-
#define SYSFLAG_BYTES_WARNING 0
|
| 3 |
-
#define SYSFLAG_NO_RANDOMIZATION 0
|
| 4 |
-
#define SYSFLAG_NO_SITE 0
|
| 5 |
-
#define SYSFLAG_OPTIMIZE 0
|
| 6 |
-
#define SYSFLAG_UTF8 0
|
| 7 |
-
#define SYSFLAG_VERBOSE 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/module.models.Qformer.const
DELETED
|
Binary file (21 kB)
|
|
|
medomni/models.build/module.models.Qformer.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.UNet.const
DELETED
|
Binary file (2.8 kB)
|
|
|
medomni/models.build/module.models.UNet.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.base_model.const
DELETED
|
Binary file (6.98 kB)
|
|
|
medomni/models.build/module.models.base_model.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.blip2.const
DELETED
|
Binary file (6.22 kB)
|
|
|
medomni/models.build/module.models.blip2.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.blip2_outputs.const
DELETED
|
Binary file (3.76 kB)
|
|
|
medomni/models.build/module.models.blip2_outputs.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.const
DELETED
|
Binary file (6.23 kB)
|
|
|
medomni/models.build/module.models.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.eva_vit.const
DELETED
|
Binary file (9.21 kB)
|
|
|
medomni/models.build/module.models.eva_vit.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.medomni.const
DELETED
|
Binary file (11.6 kB)
|
|
|
medomni/models.build/module.models.medomni.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.medomni_bp.const
DELETED
|
Binary file (11.6 kB)
|
|
|
medomni/models.build/module.models.medomni_bp.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.modeling_llama.const
DELETED
|
Binary file (18.7 kB)
|
|
|
medomni/models.build/module.models.modeling_llama.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.unet3d.buildingblocks.const
DELETED
|
Binary file (11.8 kB)
|
|
|
medomni/models.build/module.models.unet3d.buildingblocks.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.unet3d.config.const
DELETED
|
Binary file (1.16 kB)
|
|
|
medomni/models.build/module.models.unet3d.config.cpp
DELETED
|
@@ -1,1704 +0,0 @@
|
|
| 1 |
-
/* Generated code for Python module 'models.unet3d.config'
|
| 2 |
-
* created by Nuitka version 0.6.16
|
| 3 |
-
*
|
| 4 |
-
* This code is in part copyright 2021 Kay Hayen.
|
| 5 |
-
*
|
| 6 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 7 |
-
* you may not use this file except in compliance with the License.
|
| 8 |
-
* You may obtain a copy of the License at
|
| 9 |
-
*
|
| 10 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
| 11 |
-
*
|
| 12 |
-
* Unless required by applicable law or agreed to in writing, software
|
| 13 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 |
-
* See the License for the specific language governing permissions and
|
| 16 |
-
* limitations under the License.
|
| 17 |
-
*/
|
| 18 |
-
|
| 19 |
-
#include "nuitka/prelude.h"
|
| 20 |
-
|
| 21 |
-
#include "nuitka/unfreezing.h"
|
| 22 |
-
|
| 23 |
-
#include "__helpers.h"
|
| 24 |
-
|
| 25 |
-
/* The "module_models$unet3d$config" is a Python object pointer of module type.
|
| 26 |
-
*
|
| 27 |
-
* Note: For full compatibility with CPython, every module variable access
|
| 28 |
-
* needs to go through it except for cases where the module cannot possibly
|
| 29 |
-
* have changed in the mean time.
|
| 30 |
-
*/
|
| 31 |
-
|
| 32 |
-
PyObject *module_models$unet3d$config;
|
| 33 |
-
PyDictObject *moduledict_models$unet3d$config;
|
| 34 |
-
|
| 35 |
-
/* The declarations of module constants used, if any. */
|
| 36 |
-
static PyObject *mod_consts[41];
|
| 37 |
-
|
| 38 |
-
static PyObject *module_filename_obj = NULL;
|
| 39 |
-
|
| 40 |
-
/* Indicator if this modules private constants were created yet. */
|
| 41 |
-
static bool constants_created = false;
|
| 42 |
-
|
| 43 |
-
/* Function to create module private constants. */
|
| 44 |
-
static void createModuleConstants(void) {
|
| 45 |
-
if (constants_created == false) {
|
| 46 |
-
loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.config"));
|
| 47 |
-
constants_created = true;
|
| 48 |
-
}
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
/* For multiprocessing, we want to be able to initialize the __main__ constants. */
|
| 52 |
-
#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0
|
| 53 |
-
void createMainModuleConstants(void) {
|
| 54 |
-
createModuleConstants();
|
| 55 |
-
}
|
| 56 |
-
#endif
|
| 57 |
-
|
| 58 |
-
/* Function to verify module private constants for non-corruption. */
|
| 59 |
-
#ifndef __NUITKA_NO_ASSERT__
|
| 60 |
-
void checkModuleConstants_models$unet3d$config(void) {
|
| 61 |
-
// The module may not have been used at all, then ignore this.
|
| 62 |
-
if (constants_created == false) return;
|
| 63 |
-
|
| 64 |
-
checkConstantsBlob(&mod_consts[0], "models.unet3d.config");
|
| 65 |
-
}
|
| 66 |
-
#endif
|
| 67 |
-
|
| 68 |
-
// The module code objects.
|
| 69 |
-
static PyCodeObject *codeobj_0d287422afe948efe554fb353d458e08;
|
| 70 |
-
static PyCodeObject *codeobj_06a61653c58962b90971568d2c6397d2;
|
| 71 |
-
static PyCodeObject *codeobj_fe147ccf47df0f0326a7eabd624239de;
|
| 72 |
-
|
| 73 |
-
static void createModuleCodeObjects(void) {
|
| 74 |
-
module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[37]); CHECK_OBJECT(module_filename_obj);
|
| 75 |
-
codeobj_0d287422afe948efe554fb353d458e08 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[38], NULL, NULL, 0, 0, 0);
|
| 76 |
-
codeobj_06a61653c58962b90971568d2c6397d2 = MAKE_CODEOBJECT(module_filename_obj, 31, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[36], mod_consts[39], NULL, 1, 0, 0);
|
| 77 |
-
codeobj_fe147ccf47df0f0326a7eabd624239de = MAKE_CODEOBJECT(module_filename_obj, 11, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[35], mod_consts[40], NULL, 0, 0, 0);
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
// The module function declarations.
|
| 81 |
-
static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config();
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml();
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
// The module function definitions.
|
| 88 |
-
static PyObject *impl_models$unet3d$config$$$function__1_load_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
|
| 89 |
-
// Preserve error status for checks
|
| 90 |
-
#ifndef __NUITKA_NO_ASSERT__
|
| 91 |
-
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
| 92 |
-
#endif
|
| 93 |
-
|
| 94 |
-
// Local variable declarations.
|
| 95 |
-
PyObject *var_parser = NULL;
|
| 96 |
-
PyObject *var_args = NULL;
|
| 97 |
-
PyObject *var_config = NULL;
|
| 98 |
-
PyObject *var_device = NULL;
|
| 99 |
-
struct Nuitka_FrameObject *frame_fe147ccf47df0f0326a7eabd624239de;
|
| 100 |
-
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
| 101 |
-
PyObject *exception_type = NULL;
|
| 102 |
-
PyObject *exception_value = NULL;
|
| 103 |
-
PyTracebackObject *exception_tb = NULL;
|
| 104 |
-
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
| 105 |
-
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
|
| 106 |
-
bool tmp_result;
|
| 107 |
-
PyObject *tmp_return_value = NULL;
|
| 108 |
-
static struct Nuitka_FrameObject *cache_frame_fe147ccf47df0f0326a7eabd624239de = NULL;
|
| 109 |
-
PyObject *exception_keeper_type_1;
|
| 110 |
-
PyObject *exception_keeper_value_1;
|
| 111 |
-
PyTracebackObject *exception_keeper_tb_1;
|
| 112 |
-
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
| 113 |
-
|
| 114 |
-
// Actual function body.
|
| 115 |
-
// Tried code:
|
| 116 |
-
if (isFrameUnusable(cache_frame_fe147ccf47df0f0326a7eabd624239de)) {
|
| 117 |
-
Py_XDECREF(cache_frame_fe147ccf47df0f0326a7eabd624239de);
|
| 118 |
-
|
| 119 |
-
#if _DEBUG_REFCOUNTS
|
| 120 |
-
if (cache_frame_fe147ccf47df0f0326a7eabd624239de == NULL) {
|
| 121 |
-
count_active_frame_cache_instances += 1;
|
| 122 |
-
} else {
|
| 123 |
-
count_released_frame_cache_instances += 1;
|
| 124 |
-
}
|
| 125 |
-
count_allocated_frame_cache_instances += 1;
|
| 126 |
-
#endif
|
| 127 |
-
cache_frame_fe147ccf47df0f0326a7eabd624239de = MAKE_FUNCTION_FRAME(codeobj_fe147ccf47df0f0326a7eabd624239de, module_models$unet3d$config, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
|
| 128 |
-
#if _DEBUG_REFCOUNTS
|
| 129 |
-
} else {
|
| 130 |
-
count_hit_frame_cache_instances += 1;
|
| 131 |
-
#endif
|
| 132 |
-
}
|
| 133 |
-
assert(cache_frame_fe147ccf47df0f0326a7eabd624239de->m_type_description == NULL);
|
| 134 |
-
frame_fe147ccf47df0f0326a7eabd624239de = cache_frame_fe147ccf47df0f0326a7eabd624239de;
|
| 135 |
-
|
| 136 |
-
// Push the new frame as the currently active one.
|
| 137 |
-
pushFrameStack(frame_fe147ccf47df0f0326a7eabd624239de);
|
| 138 |
-
|
| 139 |
-
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
| 140 |
-
assert(Py_REFCNT(frame_fe147ccf47df0f0326a7eabd624239de) == 2); // Frame stack
|
| 141 |
-
|
| 142 |
-
// Framed code:
|
| 143 |
-
{
|
| 144 |
-
PyObject *tmp_assign_source_1;
|
| 145 |
-
PyObject *tmp_called_name_1;
|
| 146 |
-
PyObject *tmp_expression_name_1;
|
| 147 |
-
PyObject *tmp_kwargs_name_1;
|
| 148 |
-
tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[0]);
|
| 149 |
-
|
| 150 |
-
if (unlikely(tmp_expression_name_1 == NULL)) {
|
| 151 |
-
tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]);
|
| 152 |
-
}
|
| 153 |
-
|
| 154 |
-
if (tmp_expression_name_1 == NULL) {
|
| 155 |
-
assert(ERROR_OCCURRED());
|
| 156 |
-
|
| 157 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
exception_lineno = 12;
|
| 161 |
-
type_description_1 = "oooo";
|
| 162 |
-
goto frame_exception_exit_1;
|
| 163 |
-
}
|
| 164 |
-
tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]);
|
| 165 |
-
if (tmp_called_name_1 == NULL) {
|
| 166 |
-
assert(ERROR_OCCURRED());
|
| 167 |
-
|
| 168 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
exception_lineno = 12;
|
| 172 |
-
type_description_1 = "oooo";
|
| 173 |
-
goto frame_exception_exit_1;
|
| 174 |
-
}
|
| 175 |
-
tmp_kwargs_name_1 = PyDict_Copy(mod_consts[2]);
|
| 176 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 12;
|
| 177 |
-
tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1);
|
| 178 |
-
Py_DECREF(tmp_called_name_1);
|
| 179 |
-
Py_DECREF(tmp_kwargs_name_1);
|
| 180 |
-
if (tmp_assign_source_1 == NULL) {
|
| 181 |
-
assert(ERROR_OCCURRED());
|
| 182 |
-
|
| 183 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
exception_lineno = 12;
|
| 187 |
-
type_description_1 = "oooo";
|
| 188 |
-
goto frame_exception_exit_1;
|
| 189 |
-
}
|
| 190 |
-
assert(var_parser == NULL);
|
| 191 |
-
var_parser = tmp_assign_source_1;
|
| 192 |
-
}
|
| 193 |
-
{
|
| 194 |
-
PyObject *tmp_called_name_2;
|
| 195 |
-
PyObject *tmp_expression_name_2;
|
| 196 |
-
PyObject *tmp_call_result_1;
|
| 197 |
-
PyObject *tmp_args_name_1;
|
| 198 |
-
PyObject *tmp_kwargs_name_2;
|
| 199 |
-
CHECK_OBJECT(var_parser);
|
| 200 |
-
tmp_expression_name_2 = var_parser;
|
| 201 |
-
tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]);
|
| 202 |
-
if (tmp_called_name_2 == NULL) {
|
| 203 |
-
assert(ERROR_OCCURRED());
|
| 204 |
-
|
| 205 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
exception_lineno = 13;
|
| 209 |
-
type_description_1 = "oooo";
|
| 210 |
-
goto frame_exception_exit_1;
|
| 211 |
-
}
|
| 212 |
-
tmp_args_name_1 = mod_consts[4];
|
| 213 |
-
tmp_kwargs_name_2 = PyDict_Copy(mod_consts[5]);
|
| 214 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 13;
|
| 215 |
-
tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2);
|
| 216 |
-
Py_DECREF(tmp_called_name_2);
|
| 217 |
-
Py_DECREF(tmp_kwargs_name_2);
|
| 218 |
-
if (tmp_call_result_1 == NULL) {
|
| 219 |
-
assert(ERROR_OCCURRED());
|
| 220 |
-
|
| 221 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
exception_lineno = 13;
|
| 225 |
-
type_description_1 = "oooo";
|
| 226 |
-
goto frame_exception_exit_1;
|
| 227 |
-
}
|
| 228 |
-
Py_DECREF(tmp_call_result_1);
|
| 229 |
-
}
|
| 230 |
-
{
|
| 231 |
-
PyObject *tmp_assign_source_2;
|
| 232 |
-
PyObject *tmp_called_instance_1;
|
| 233 |
-
if (var_parser == NULL) {
|
| 234 |
-
|
| 235 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]);
|
| 236 |
-
exception_tb = NULL;
|
| 237 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 238 |
-
CHAIN_EXCEPTION(exception_value);
|
| 239 |
-
|
| 240 |
-
exception_lineno = 14;
|
| 241 |
-
type_description_1 = "oooo";
|
| 242 |
-
goto frame_exception_exit_1;
|
| 243 |
-
}
|
| 244 |
-
|
| 245 |
-
tmp_called_instance_1 = var_parser;
|
| 246 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 14;
|
| 247 |
-
tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]);
|
| 248 |
-
if (tmp_assign_source_2 == NULL) {
|
| 249 |
-
assert(ERROR_OCCURRED());
|
| 250 |
-
|
| 251 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
exception_lineno = 14;
|
| 255 |
-
type_description_1 = "oooo";
|
| 256 |
-
goto frame_exception_exit_1;
|
| 257 |
-
}
|
| 258 |
-
assert(var_args == NULL);
|
| 259 |
-
var_args = tmp_assign_source_2;
|
| 260 |
-
}
|
| 261 |
-
{
|
| 262 |
-
PyObject *tmp_assign_source_3;
|
| 263 |
-
PyObject *tmp_called_name_3;
|
| 264 |
-
PyObject *tmp_expression_name_3;
|
| 265 |
-
PyObject *tmp_args_element_name_1;
|
| 266 |
-
PyObject *tmp_open_filename_1;
|
| 267 |
-
PyObject *tmp_expression_name_4;
|
| 268 |
-
PyObject *tmp_open_mode_1;
|
| 269 |
-
tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8]);
|
| 270 |
-
|
| 271 |
-
if (unlikely(tmp_expression_name_3 == NULL)) {
|
| 272 |
-
tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]);
|
| 273 |
-
}
|
| 274 |
-
|
| 275 |
-
if (tmp_expression_name_3 == NULL) {
|
| 276 |
-
assert(ERROR_OCCURRED());
|
| 277 |
-
|
| 278 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
exception_lineno = 15;
|
| 282 |
-
type_description_1 = "oooo";
|
| 283 |
-
goto frame_exception_exit_1;
|
| 284 |
-
}
|
| 285 |
-
tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]);
|
| 286 |
-
if (tmp_called_name_3 == NULL) {
|
| 287 |
-
assert(ERROR_OCCURRED());
|
| 288 |
-
|
| 289 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
exception_lineno = 15;
|
| 293 |
-
type_description_1 = "oooo";
|
| 294 |
-
goto frame_exception_exit_1;
|
| 295 |
-
}
|
| 296 |
-
CHECK_OBJECT(var_args);
|
| 297 |
-
tmp_expression_name_4 = var_args;
|
| 298 |
-
tmp_open_filename_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[10]);
|
| 299 |
-
if (tmp_open_filename_1 == NULL) {
|
| 300 |
-
assert(ERROR_OCCURRED());
|
| 301 |
-
|
| 302 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 303 |
-
Py_DECREF(tmp_called_name_3);
|
| 304 |
-
|
| 305 |
-
exception_lineno = 15;
|
| 306 |
-
type_description_1 = "oooo";
|
| 307 |
-
goto frame_exception_exit_1;
|
| 308 |
-
}
|
| 309 |
-
tmp_open_mode_1 = mod_consts[11];
|
| 310 |
-
tmp_args_element_name_1 = BUILTIN_OPEN(tmp_open_filename_1, tmp_open_mode_1, NULL, NULL, NULL, NULL, NULL, NULL);
|
| 311 |
-
Py_DECREF(tmp_open_filename_1);
|
| 312 |
-
if (tmp_args_element_name_1 == NULL) {
|
| 313 |
-
assert(ERROR_OCCURRED());
|
| 314 |
-
|
| 315 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 316 |
-
Py_DECREF(tmp_called_name_3);
|
| 317 |
-
|
| 318 |
-
exception_lineno = 15;
|
| 319 |
-
type_description_1 = "oooo";
|
| 320 |
-
goto frame_exception_exit_1;
|
| 321 |
-
}
|
| 322 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 15;
|
| 323 |
-
tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1);
|
| 324 |
-
Py_DECREF(tmp_called_name_3);
|
| 325 |
-
Py_DECREF(tmp_args_element_name_1);
|
| 326 |
-
if (tmp_assign_source_3 == NULL) {
|
| 327 |
-
assert(ERROR_OCCURRED());
|
| 328 |
-
|
| 329 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
exception_lineno = 15;
|
| 333 |
-
type_description_1 = "oooo";
|
| 334 |
-
goto frame_exception_exit_1;
|
| 335 |
-
}
|
| 336 |
-
assert(var_config == NULL);
|
| 337 |
-
var_config = tmp_assign_source_3;
|
| 338 |
-
}
|
| 339 |
-
{
|
| 340 |
-
PyObject *tmp_assign_source_4;
|
| 341 |
-
PyObject *tmp_called_instance_2;
|
| 342 |
-
CHECK_OBJECT(var_config);
|
| 343 |
-
tmp_called_instance_2 = var_config;
|
| 344 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 17;
|
| 345 |
-
tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2(
|
| 346 |
-
tmp_called_instance_2,
|
| 347 |
-
mod_consts[12],
|
| 348 |
-
&PyTuple_GET_ITEM(mod_consts[13], 0)
|
| 349 |
-
);
|
| 350 |
-
|
| 351 |
-
if (tmp_assign_source_4 == NULL) {
|
| 352 |
-
assert(ERROR_OCCURRED());
|
| 353 |
-
|
| 354 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
exception_lineno = 17;
|
| 358 |
-
type_description_1 = "oooo";
|
| 359 |
-
goto frame_exception_exit_1;
|
| 360 |
-
}
|
| 361 |
-
assert(var_device == NULL);
|
| 362 |
-
var_device = tmp_assign_source_4;
|
| 363 |
-
}
|
| 364 |
-
{
|
| 365 |
-
nuitka_bool tmp_condition_result_1;
|
| 366 |
-
PyObject *tmp_compexpr_left_1;
|
| 367 |
-
PyObject *tmp_compexpr_right_1;
|
| 368 |
-
PyObject *tmp_tmp_condition_result_1_object_1;
|
| 369 |
-
int tmp_truth_name_1;
|
| 370 |
-
CHECK_OBJECT(var_device);
|
| 371 |
-
tmp_compexpr_left_1 = var_device;
|
| 372 |
-
tmp_compexpr_right_1 = mod_consts[14];
|
| 373 |
-
tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1);
|
| 374 |
-
if (tmp_tmp_condition_result_1_object_1 == NULL) {
|
| 375 |
-
assert(ERROR_OCCURRED());
|
| 376 |
-
|
| 377 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
exception_lineno = 18;
|
| 381 |
-
type_description_1 = "oooo";
|
| 382 |
-
goto frame_exception_exit_1;
|
| 383 |
-
}
|
| 384 |
-
tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1);
|
| 385 |
-
if (tmp_truth_name_1 == -1) {
|
| 386 |
-
assert(ERROR_OCCURRED());
|
| 387 |
-
|
| 388 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 389 |
-
Py_DECREF(tmp_tmp_condition_result_1_object_1);
|
| 390 |
-
|
| 391 |
-
exception_lineno = 18;
|
| 392 |
-
type_description_1 = "oooo";
|
| 393 |
-
goto frame_exception_exit_1;
|
| 394 |
-
}
|
| 395 |
-
tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
|
| 396 |
-
Py_DECREF(tmp_tmp_condition_result_1_object_1);
|
| 397 |
-
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
|
| 398 |
-
goto branch_yes_1;
|
| 399 |
-
} else {
|
| 400 |
-
goto branch_no_1;
|
| 401 |
-
}
|
| 402 |
-
}
|
| 403 |
-
branch_yes_1:;
|
| 404 |
-
{
|
| 405 |
-
PyObject *tmp_called_instance_3;
|
| 406 |
-
PyObject *tmp_call_result_2;
|
| 407 |
-
tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15]);
|
| 408 |
-
|
| 409 |
-
if (unlikely(tmp_called_instance_3 == NULL)) {
|
| 410 |
-
tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]);
|
| 411 |
-
}
|
| 412 |
-
|
| 413 |
-
if (tmp_called_instance_3 == NULL) {
|
| 414 |
-
assert(ERROR_OCCURRED());
|
| 415 |
-
|
| 416 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
exception_lineno = 19;
|
| 420 |
-
type_description_1 = "oooo";
|
| 421 |
-
goto frame_exception_exit_1;
|
| 422 |
-
}
|
| 423 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 19;
|
| 424 |
-
tmp_call_result_2 = CALL_METHOD_WITH_ARGS1(
|
| 425 |
-
tmp_called_instance_3,
|
| 426 |
-
mod_consts[16],
|
| 427 |
-
&PyTuple_GET_ITEM(mod_consts[17], 0)
|
| 428 |
-
);
|
| 429 |
-
|
| 430 |
-
if (tmp_call_result_2 == NULL) {
|
| 431 |
-
assert(ERROR_OCCURRED());
|
| 432 |
-
|
| 433 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
exception_lineno = 19;
|
| 437 |
-
type_description_1 = "oooo";
|
| 438 |
-
goto frame_exception_exit_1;
|
| 439 |
-
}
|
| 440 |
-
Py_DECREF(tmp_call_result_2);
|
| 441 |
-
}
|
| 442 |
-
{
|
| 443 |
-
PyObject *tmp_ass_subvalue_1;
|
| 444 |
-
PyObject *tmp_ass_subscribed_1;
|
| 445 |
-
PyObject *tmp_ass_subscript_1;
|
| 446 |
-
tmp_ass_subvalue_1 = mod_consts[14];
|
| 447 |
-
if (var_config == NULL) {
|
| 448 |
-
|
| 449 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]);
|
| 450 |
-
exception_tb = NULL;
|
| 451 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 452 |
-
CHAIN_EXCEPTION(exception_value);
|
| 453 |
-
|
| 454 |
-
exception_lineno = 20;
|
| 455 |
-
type_description_1 = "oooo";
|
| 456 |
-
goto frame_exception_exit_1;
|
| 457 |
-
}
|
| 458 |
-
|
| 459 |
-
tmp_ass_subscribed_1 = var_config;
|
| 460 |
-
tmp_ass_subscript_1 = mod_consts[18];
|
| 461 |
-
tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1);
|
| 462 |
-
if (tmp_result == false) {
|
| 463 |
-
assert(ERROR_OCCURRED());
|
| 464 |
-
|
| 465 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
exception_lineno = 20;
|
| 469 |
-
type_description_1 = "oooo";
|
| 470 |
-
goto frame_exception_exit_1;
|
| 471 |
-
}
|
| 472 |
-
}
|
| 473 |
-
if (var_config == NULL) {
|
| 474 |
-
|
| 475 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]);
|
| 476 |
-
exception_tb = NULL;
|
| 477 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 478 |
-
CHAIN_EXCEPTION(exception_value);
|
| 479 |
-
|
| 480 |
-
exception_lineno = 21;
|
| 481 |
-
type_description_1 = "oooo";
|
| 482 |
-
goto frame_exception_exit_1;
|
| 483 |
-
}
|
| 484 |
-
|
| 485 |
-
tmp_return_value = var_config;
|
| 486 |
-
Py_INCREF(tmp_return_value);
|
| 487 |
-
goto frame_return_exit_1;
|
| 488 |
-
branch_no_1:;
|
| 489 |
-
{
|
| 490 |
-
nuitka_bool tmp_condition_result_2;
|
| 491 |
-
PyObject *tmp_called_instance_4;
|
| 492 |
-
PyObject *tmp_expression_name_5;
|
| 493 |
-
PyObject *tmp_call_result_3;
|
| 494 |
-
int tmp_truth_name_2;
|
| 495 |
-
tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[19]);
|
| 496 |
-
|
| 497 |
-
if (unlikely(tmp_expression_name_5 == NULL)) {
|
| 498 |
-
tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[19]);
|
| 499 |
-
}
|
| 500 |
-
|
| 501 |
-
if (tmp_expression_name_5 == NULL) {
|
| 502 |
-
assert(ERROR_OCCURRED());
|
| 503 |
-
|
| 504 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
exception_lineno = 23;
|
| 508 |
-
type_description_1 = "oooo";
|
| 509 |
-
goto frame_exception_exit_1;
|
| 510 |
-
}
|
| 511 |
-
tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[20]);
|
| 512 |
-
if (tmp_called_instance_4 == NULL) {
|
| 513 |
-
assert(ERROR_OCCURRED());
|
| 514 |
-
|
| 515 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
exception_lineno = 23;
|
| 519 |
-
type_description_1 = "oooo";
|
| 520 |
-
goto frame_exception_exit_1;
|
| 521 |
-
}
|
| 522 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 23;
|
| 523 |
-
tmp_call_result_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[21]);
|
| 524 |
-
Py_DECREF(tmp_called_instance_4);
|
| 525 |
-
if (tmp_call_result_3 == NULL) {
|
| 526 |
-
assert(ERROR_OCCURRED());
|
| 527 |
-
|
| 528 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
exception_lineno = 23;
|
| 532 |
-
type_description_1 = "oooo";
|
| 533 |
-
goto frame_exception_exit_1;
|
| 534 |
-
}
|
| 535 |
-
tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_3);
|
| 536 |
-
if (tmp_truth_name_2 == -1) {
|
| 537 |
-
assert(ERROR_OCCURRED());
|
| 538 |
-
|
| 539 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 540 |
-
Py_DECREF(tmp_call_result_3);
|
| 541 |
-
|
| 542 |
-
exception_lineno = 23;
|
| 543 |
-
type_description_1 = "oooo";
|
| 544 |
-
goto frame_exception_exit_1;
|
| 545 |
-
}
|
| 546 |
-
tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
|
| 547 |
-
Py_DECREF(tmp_call_result_3);
|
| 548 |
-
if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) {
|
| 549 |
-
goto branch_yes_2;
|
| 550 |
-
} else {
|
| 551 |
-
goto branch_no_2;
|
| 552 |
-
}
|
| 553 |
-
}
|
| 554 |
-
branch_yes_2:;
|
| 555 |
-
{
|
| 556 |
-
PyObject *tmp_ass_subvalue_2;
|
| 557 |
-
PyObject *tmp_ass_subscribed_2;
|
| 558 |
-
PyObject *tmp_ass_subscript_2;
|
| 559 |
-
tmp_ass_subvalue_2 = mod_consts[20];
|
| 560 |
-
if (var_config == NULL) {
|
| 561 |
-
|
| 562 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]);
|
| 563 |
-
exception_tb = NULL;
|
| 564 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 565 |
-
CHAIN_EXCEPTION(exception_value);
|
| 566 |
-
|
| 567 |
-
exception_lineno = 24;
|
| 568 |
-
type_description_1 = "oooo";
|
| 569 |
-
goto frame_exception_exit_1;
|
| 570 |
-
}
|
| 571 |
-
|
| 572 |
-
tmp_ass_subscribed_2 = var_config;
|
| 573 |
-
tmp_ass_subscript_2 = mod_consts[18];
|
| 574 |
-
tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2);
|
| 575 |
-
if (tmp_result == false) {
|
| 576 |
-
assert(ERROR_OCCURRED());
|
| 577 |
-
|
| 578 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
exception_lineno = 24;
|
| 582 |
-
type_description_1 = "oooo";
|
| 583 |
-
goto frame_exception_exit_1;
|
| 584 |
-
}
|
| 585 |
-
}
|
| 586 |
-
goto branch_end_2;
|
| 587 |
-
branch_no_2:;
|
| 588 |
-
{
|
| 589 |
-
PyObject *tmp_called_instance_5;
|
| 590 |
-
PyObject *tmp_call_result_4;
|
| 591 |
-
tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15]);
|
| 592 |
-
|
| 593 |
-
if (unlikely(tmp_called_instance_5 == NULL)) {
|
| 594 |
-
tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]);
|
| 595 |
-
}
|
| 596 |
-
|
| 597 |
-
if (tmp_called_instance_5 == NULL) {
|
| 598 |
-
assert(ERROR_OCCURRED());
|
| 599 |
-
|
| 600 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
exception_lineno = 26;
|
| 604 |
-
type_description_1 = "oooo";
|
| 605 |
-
goto frame_exception_exit_1;
|
| 606 |
-
}
|
| 607 |
-
frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 26;
|
| 608 |
-
tmp_call_result_4 = CALL_METHOD_WITH_ARGS1(
|
| 609 |
-
tmp_called_instance_5,
|
| 610 |
-
mod_consts[16],
|
| 611 |
-
&PyTuple_GET_ITEM(mod_consts[22], 0)
|
| 612 |
-
);
|
| 613 |
-
|
| 614 |
-
if (tmp_call_result_4 == NULL) {
|
| 615 |
-
assert(ERROR_OCCURRED());
|
| 616 |
-
|
| 617 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
exception_lineno = 26;
|
| 621 |
-
type_description_1 = "oooo";
|
| 622 |
-
goto frame_exception_exit_1;
|
| 623 |
-
}
|
| 624 |
-
Py_DECREF(tmp_call_result_4);
|
| 625 |
-
}
|
| 626 |
-
{
|
| 627 |
-
PyObject *tmp_ass_subvalue_3;
|
| 628 |
-
PyObject *tmp_ass_subscribed_3;
|
| 629 |
-
PyObject *tmp_ass_subscript_3;
|
| 630 |
-
tmp_ass_subvalue_3 = mod_consts[14];
|
| 631 |
-
if (var_config == NULL) {
|
| 632 |
-
|
| 633 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]);
|
| 634 |
-
exception_tb = NULL;
|
| 635 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 636 |
-
CHAIN_EXCEPTION(exception_value);
|
| 637 |
-
|
| 638 |
-
exception_lineno = 27;
|
| 639 |
-
type_description_1 = "oooo";
|
| 640 |
-
goto frame_exception_exit_1;
|
| 641 |
-
}
|
| 642 |
-
|
| 643 |
-
tmp_ass_subscribed_3 = var_config;
|
| 644 |
-
tmp_ass_subscript_3 = mod_consts[18];
|
| 645 |
-
tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3);
|
| 646 |
-
if (tmp_result == false) {
|
| 647 |
-
assert(ERROR_OCCURRED());
|
| 648 |
-
|
| 649 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
exception_lineno = 27;
|
| 653 |
-
type_description_1 = "oooo";
|
| 654 |
-
goto frame_exception_exit_1;
|
| 655 |
-
}
|
| 656 |
-
}
|
| 657 |
-
branch_end_2:;
|
| 658 |
-
if (var_config == NULL) {
|
| 659 |
-
|
| 660 |
-
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]);
|
| 661 |
-
exception_tb = NULL;
|
| 662 |
-
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
|
| 663 |
-
CHAIN_EXCEPTION(exception_value);
|
| 664 |
-
|
| 665 |
-
exception_lineno = 28;
|
| 666 |
-
type_description_1 = "oooo";
|
| 667 |
-
goto frame_exception_exit_1;
|
| 668 |
-
}
|
| 669 |
-
|
| 670 |
-
tmp_return_value = var_config;
|
| 671 |
-
Py_INCREF(tmp_return_value);
|
| 672 |
-
goto frame_return_exit_1;
|
| 673 |
-
|
| 674 |
-
#if 0
|
| 675 |
-
RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de);
|
| 676 |
-
#endif
|
| 677 |
-
|
| 678 |
-
// Put the previous frame back on top.
|
| 679 |
-
popFrameStack();
|
| 680 |
-
|
| 681 |
-
goto frame_no_exception_1;
|
| 682 |
-
|
| 683 |
-
frame_return_exit_1:;
|
| 684 |
-
#if 0
|
| 685 |
-
RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de);
|
| 686 |
-
#endif
|
| 687 |
-
|
| 688 |
-
// Put the previous frame back on top.
|
| 689 |
-
popFrameStack();
|
| 690 |
-
|
| 691 |
-
goto try_return_handler_1;
|
| 692 |
-
|
| 693 |
-
frame_exception_exit_1:;
|
| 694 |
-
|
| 695 |
-
#if 0
|
| 696 |
-
RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de);
|
| 697 |
-
#endif
|
| 698 |
-
|
| 699 |
-
if (exception_tb == NULL) {
|
| 700 |
-
exception_tb = MAKE_TRACEBACK(frame_fe147ccf47df0f0326a7eabd624239de, exception_lineno);
|
| 701 |
-
} else if (exception_tb->tb_frame != &frame_fe147ccf47df0f0326a7eabd624239de->m_frame) {
|
| 702 |
-
exception_tb = ADD_TRACEBACK(exception_tb, frame_fe147ccf47df0f0326a7eabd624239de, exception_lineno);
|
| 703 |
-
}
|
| 704 |
-
|
| 705 |
-
// Attaches locals to frame if any.
|
| 706 |
-
Nuitka_Frame_AttachLocals(
|
| 707 |
-
frame_fe147ccf47df0f0326a7eabd624239de,
|
| 708 |
-
type_description_1,
|
| 709 |
-
var_parser,
|
| 710 |
-
var_args,
|
| 711 |
-
var_config,
|
| 712 |
-
var_device
|
| 713 |
-
);
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
// Release cached frame if used for exception.
|
| 717 |
-
if (frame_fe147ccf47df0f0326a7eabd624239de == cache_frame_fe147ccf47df0f0326a7eabd624239de) {
|
| 718 |
-
#if _DEBUG_REFCOUNTS
|
| 719 |
-
count_active_frame_cache_instances -= 1;
|
| 720 |
-
count_released_frame_cache_instances += 1;
|
| 721 |
-
#endif
|
| 722 |
-
|
| 723 |
-
Py_DECREF(cache_frame_fe147ccf47df0f0326a7eabd624239de);
|
| 724 |
-
cache_frame_fe147ccf47df0f0326a7eabd624239de = NULL;
|
| 725 |
-
}
|
| 726 |
-
|
| 727 |
-
assertFrameObject(frame_fe147ccf47df0f0326a7eabd624239de);
|
| 728 |
-
|
| 729 |
-
// Put the previous frame back on top.
|
| 730 |
-
popFrameStack();
|
| 731 |
-
|
| 732 |
-
// Return the error.
|
| 733 |
-
goto try_except_handler_1;
|
| 734 |
-
|
| 735 |
-
frame_no_exception_1:;
|
| 736 |
-
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
|
| 737 |
-
return NULL;
|
| 738 |
-
// Return handler code:
|
| 739 |
-
try_return_handler_1:;
|
| 740 |
-
Py_XDECREF(var_parser);
|
| 741 |
-
var_parser = NULL;
|
| 742 |
-
Py_XDECREF(var_args);
|
| 743 |
-
var_args = NULL;
|
| 744 |
-
Py_XDECREF(var_config);
|
| 745 |
-
var_config = NULL;
|
| 746 |
-
CHECK_OBJECT(var_device);
|
| 747 |
-
Py_DECREF(var_device);
|
| 748 |
-
var_device = NULL;
|
| 749 |
-
goto function_return_exit;
|
| 750 |
-
// Exception handler code:
|
| 751 |
-
try_except_handler_1:;
|
| 752 |
-
exception_keeper_type_1 = exception_type;
|
| 753 |
-
exception_keeper_value_1 = exception_value;
|
| 754 |
-
exception_keeper_tb_1 = exception_tb;
|
| 755 |
-
exception_keeper_lineno_1 = exception_lineno;
|
| 756 |
-
exception_type = NULL;
|
| 757 |
-
exception_value = NULL;
|
| 758 |
-
exception_tb = NULL;
|
| 759 |
-
exception_lineno = 0;
|
| 760 |
-
|
| 761 |
-
Py_XDECREF(var_parser);
|
| 762 |
-
var_parser = NULL;
|
| 763 |
-
Py_XDECREF(var_args);
|
| 764 |
-
var_args = NULL;
|
| 765 |
-
Py_XDECREF(var_config);
|
| 766 |
-
var_config = NULL;
|
| 767 |
-
Py_XDECREF(var_device);
|
| 768 |
-
var_device = NULL;
|
| 769 |
-
// Re-raise.
|
| 770 |
-
exception_type = exception_keeper_type_1;
|
| 771 |
-
exception_value = exception_keeper_value_1;
|
| 772 |
-
exception_tb = exception_keeper_tb_1;
|
| 773 |
-
exception_lineno = exception_keeper_lineno_1;
|
| 774 |
-
|
| 775 |
-
goto function_exception_exit;
|
| 776 |
-
// End of try:
|
| 777 |
-
|
| 778 |
-
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
|
| 779 |
-
return NULL;
|
| 780 |
-
|
| 781 |
-
function_exception_exit:
|
| 782 |
-
assert(exception_type);
|
| 783 |
-
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
|
| 784 |
-
|
| 785 |
-
return NULL;
|
| 786 |
-
|
| 787 |
-
function_return_exit:
|
| 788 |
-
// Function cleanup code if any.
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
// Actual function exit with return value, making sure we did not make
|
| 792 |
-
// the error status worse despite non-NULL return.
|
| 793 |
-
CHECK_OBJECT(tmp_return_value);
|
| 794 |
-
assert(had_error || !ERROR_OCCURRED());
|
| 795 |
-
return tmp_return_value;
|
| 796 |
-
}
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
static PyObject *impl_models$unet3d$config$$$function__2__load_config_yaml(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
|
| 800 |
-
// Preserve error status for checks
|
| 801 |
-
#ifndef __NUITKA_NO_ASSERT__
|
| 802 |
-
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
| 803 |
-
#endif
|
| 804 |
-
|
| 805 |
-
// Local variable declarations.
|
| 806 |
-
PyObject *par_config_file = python_pars[0];
|
| 807 |
-
struct Nuitka_FrameObject *frame_06a61653c58962b90971568d2c6397d2;
|
| 808 |
-
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
| 809 |
-
PyObject *tmp_return_value = NULL;
|
| 810 |
-
PyObject *exception_type = NULL;
|
| 811 |
-
PyObject *exception_value = NULL;
|
| 812 |
-
PyTracebackObject *exception_tb = NULL;
|
| 813 |
-
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
| 814 |
-
static struct Nuitka_FrameObject *cache_frame_06a61653c58962b90971568d2c6397d2 = NULL;
|
| 815 |
-
PyObject *exception_keeper_type_1;
|
| 816 |
-
PyObject *exception_keeper_value_1;
|
| 817 |
-
PyTracebackObject *exception_keeper_tb_1;
|
| 818 |
-
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
| 819 |
-
|
| 820 |
-
// Actual function body.
|
| 821 |
-
// Tried code:
|
| 822 |
-
if (isFrameUnusable(cache_frame_06a61653c58962b90971568d2c6397d2)) {
|
| 823 |
-
Py_XDECREF(cache_frame_06a61653c58962b90971568d2c6397d2);
|
| 824 |
-
|
| 825 |
-
#if _DEBUG_REFCOUNTS
|
| 826 |
-
if (cache_frame_06a61653c58962b90971568d2c6397d2 == NULL) {
|
| 827 |
-
count_active_frame_cache_instances += 1;
|
| 828 |
-
} else {
|
| 829 |
-
count_released_frame_cache_instances += 1;
|
| 830 |
-
}
|
| 831 |
-
count_allocated_frame_cache_instances += 1;
|
| 832 |
-
#endif
|
| 833 |
-
cache_frame_06a61653c58962b90971568d2c6397d2 = MAKE_FUNCTION_FRAME(codeobj_06a61653c58962b90971568d2c6397d2, module_models$unet3d$config, sizeof(void *));
|
| 834 |
-
#if _DEBUG_REFCOUNTS
|
| 835 |
-
} else {
|
| 836 |
-
count_hit_frame_cache_instances += 1;
|
| 837 |
-
#endif
|
| 838 |
-
}
|
| 839 |
-
assert(cache_frame_06a61653c58962b90971568d2c6397d2->m_type_description == NULL);
|
| 840 |
-
frame_06a61653c58962b90971568d2c6397d2 = cache_frame_06a61653c58962b90971568d2c6397d2;
|
| 841 |
-
|
| 842 |
-
// Push the new frame as the currently active one.
|
| 843 |
-
pushFrameStack(frame_06a61653c58962b90971568d2c6397d2);
|
| 844 |
-
|
| 845 |
-
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
| 846 |
-
assert(Py_REFCNT(frame_06a61653c58962b90971568d2c6397d2) == 2); // Frame stack
|
| 847 |
-
|
| 848 |
-
// Framed code:
|
| 849 |
-
{
|
| 850 |
-
PyObject *tmp_called_name_1;
|
| 851 |
-
PyObject *tmp_expression_name_1;
|
| 852 |
-
PyObject *tmp_args_element_name_1;
|
| 853 |
-
PyObject *tmp_open_filename_1;
|
| 854 |
-
PyObject *tmp_open_mode_1;
|
| 855 |
-
tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8]);
|
| 856 |
-
|
| 857 |
-
if (unlikely(tmp_expression_name_1 == NULL)) {
|
| 858 |
-
tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]);
|
| 859 |
-
}
|
| 860 |
-
|
| 861 |
-
if (tmp_expression_name_1 == NULL) {
|
| 862 |
-
assert(ERROR_OCCURRED());
|
| 863 |
-
|
| 864 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
exception_lineno = 32;
|
| 868 |
-
type_description_1 = "o";
|
| 869 |
-
goto frame_exception_exit_1;
|
| 870 |
-
}
|
| 871 |
-
tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]);
|
| 872 |
-
if (tmp_called_name_1 == NULL) {
|
| 873 |
-
assert(ERROR_OCCURRED());
|
| 874 |
-
|
| 875 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
exception_lineno = 32;
|
| 879 |
-
type_description_1 = "o";
|
| 880 |
-
goto frame_exception_exit_1;
|
| 881 |
-
}
|
| 882 |
-
CHECK_OBJECT(par_config_file);
|
| 883 |
-
tmp_open_filename_1 = par_config_file;
|
| 884 |
-
tmp_open_mode_1 = mod_consts[11];
|
| 885 |
-
tmp_args_element_name_1 = BUILTIN_OPEN(tmp_open_filename_1, tmp_open_mode_1, NULL, NULL, NULL, NULL, NULL, NULL);
|
| 886 |
-
if (tmp_args_element_name_1 == NULL) {
|
| 887 |
-
assert(ERROR_OCCURRED());
|
| 888 |
-
|
| 889 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 890 |
-
Py_DECREF(tmp_called_name_1);
|
| 891 |
-
|
| 892 |
-
exception_lineno = 32;
|
| 893 |
-
type_description_1 = "o";
|
| 894 |
-
goto frame_exception_exit_1;
|
| 895 |
-
}
|
| 896 |
-
frame_06a61653c58962b90971568d2c6397d2->m_frame.f_lineno = 32;
|
| 897 |
-
tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1);
|
| 898 |
-
Py_DECREF(tmp_called_name_1);
|
| 899 |
-
Py_DECREF(tmp_args_element_name_1);
|
| 900 |
-
if (tmp_return_value == NULL) {
|
| 901 |
-
assert(ERROR_OCCURRED());
|
| 902 |
-
|
| 903 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
exception_lineno = 32;
|
| 907 |
-
type_description_1 = "o";
|
| 908 |
-
goto frame_exception_exit_1;
|
| 909 |
-
}
|
| 910 |
-
goto frame_return_exit_1;
|
| 911 |
-
}
|
| 912 |
-
|
| 913 |
-
#if 0
|
| 914 |
-
RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2);
|
| 915 |
-
#endif
|
| 916 |
-
|
| 917 |
-
// Put the previous frame back on top.
|
| 918 |
-
popFrameStack();
|
| 919 |
-
|
| 920 |
-
goto frame_no_exception_1;
|
| 921 |
-
|
| 922 |
-
frame_return_exit_1:;
|
| 923 |
-
#if 0
|
| 924 |
-
RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2);
|
| 925 |
-
#endif
|
| 926 |
-
|
| 927 |
-
// Put the previous frame back on top.
|
| 928 |
-
popFrameStack();
|
| 929 |
-
|
| 930 |
-
goto try_return_handler_1;
|
| 931 |
-
|
| 932 |
-
frame_exception_exit_1:;
|
| 933 |
-
|
| 934 |
-
#if 0
|
| 935 |
-
RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2);
|
| 936 |
-
#endif
|
| 937 |
-
|
| 938 |
-
if (exception_tb == NULL) {
|
| 939 |
-
exception_tb = MAKE_TRACEBACK(frame_06a61653c58962b90971568d2c6397d2, exception_lineno);
|
| 940 |
-
} else if (exception_tb->tb_frame != &frame_06a61653c58962b90971568d2c6397d2->m_frame) {
|
| 941 |
-
exception_tb = ADD_TRACEBACK(exception_tb, frame_06a61653c58962b90971568d2c6397d2, exception_lineno);
|
| 942 |
-
}
|
| 943 |
-
|
| 944 |
-
// Attaches locals to frame if any.
|
| 945 |
-
Nuitka_Frame_AttachLocals(
|
| 946 |
-
frame_06a61653c58962b90971568d2c6397d2,
|
| 947 |
-
type_description_1,
|
| 948 |
-
par_config_file
|
| 949 |
-
);
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
// Release cached frame if used for exception.
|
| 953 |
-
if (frame_06a61653c58962b90971568d2c6397d2 == cache_frame_06a61653c58962b90971568d2c6397d2) {
|
| 954 |
-
#if _DEBUG_REFCOUNTS
|
| 955 |
-
count_active_frame_cache_instances -= 1;
|
| 956 |
-
count_released_frame_cache_instances += 1;
|
| 957 |
-
#endif
|
| 958 |
-
|
| 959 |
-
Py_DECREF(cache_frame_06a61653c58962b90971568d2c6397d2);
|
| 960 |
-
cache_frame_06a61653c58962b90971568d2c6397d2 = NULL;
|
| 961 |
-
}
|
| 962 |
-
|
| 963 |
-
assertFrameObject(frame_06a61653c58962b90971568d2c6397d2);
|
| 964 |
-
|
| 965 |
-
// Put the previous frame back on top.
|
| 966 |
-
popFrameStack();
|
| 967 |
-
|
| 968 |
-
// Return the error.
|
| 969 |
-
goto try_except_handler_1;
|
| 970 |
-
|
| 971 |
-
frame_no_exception_1:;
|
| 972 |
-
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
|
| 973 |
-
return NULL;
|
| 974 |
-
// Return handler code:
|
| 975 |
-
try_return_handler_1:;
|
| 976 |
-
CHECK_OBJECT(par_config_file);
|
| 977 |
-
Py_DECREF(par_config_file);
|
| 978 |
-
par_config_file = NULL;
|
| 979 |
-
goto function_return_exit;
|
| 980 |
-
// Exception handler code:
|
| 981 |
-
try_except_handler_1:;
|
| 982 |
-
exception_keeper_type_1 = exception_type;
|
| 983 |
-
exception_keeper_value_1 = exception_value;
|
| 984 |
-
exception_keeper_tb_1 = exception_tb;
|
| 985 |
-
exception_keeper_lineno_1 = exception_lineno;
|
| 986 |
-
exception_type = NULL;
|
| 987 |
-
exception_value = NULL;
|
| 988 |
-
exception_tb = NULL;
|
| 989 |
-
exception_lineno = 0;
|
| 990 |
-
|
| 991 |
-
CHECK_OBJECT(par_config_file);
|
| 992 |
-
Py_DECREF(par_config_file);
|
| 993 |
-
par_config_file = NULL;
|
| 994 |
-
// Re-raise.
|
| 995 |
-
exception_type = exception_keeper_type_1;
|
| 996 |
-
exception_value = exception_keeper_value_1;
|
| 997 |
-
exception_tb = exception_keeper_tb_1;
|
| 998 |
-
exception_lineno = exception_keeper_lineno_1;
|
| 999 |
-
|
| 1000 |
-
goto function_exception_exit;
|
| 1001 |
-
// End of try:
|
| 1002 |
-
|
| 1003 |
-
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
|
| 1004 |
-
return NULL;
|
| 1005 |
-
|
| 1006 |
-
function_exception_exit:
|
| 1007 |
-
assert(exception_type);
|
| 1008 |
-
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
|
| 1009 |
-
|
| 1010 |
-
return NULL;
|
| 1011 |
-
|
| 1012 |
-
function_return_exit:
|
| 1013 |
-
// Function cleanup code if any.
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
// Actual function exit with return value, making sure we did not make
|
| 1017 |
-
// the error status worse despite non-NULL return.
|
| 1018 |
-
CHECK_OBJECT(tmp_return_value);
|
| 1019 |
-
assert(had_error || !ERROR_OCCURRED());
|
| 1020 |
-
return tmp_return_value;
|
| 1021 |
-
}
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config() {
|
| 1026 |
-
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
| 1027 |
-
impl_models$unet3d$config$$$function__1_load_config,
|
| 1028 |
-
mod_consts[35],
|
| 1029 |
-
#if PYTHON_VERSION >= 0x300
|
| 1030 |
-
NULL,
|
| 1031 |
-
#endif
|
| 1032 |
-
codeobj_fe147ccf47df0f0326a7eabd624239de,
|
| 1033 |
-
NULL,
|
| 1034 |
-
#if PYTHON_VERSION >= 0x300
|
| 1035 |
-
NULL,
|
| 1036 |
-
NULL,
|
| 1037 |
-
#endif
|
| 1038 |
-
module_models$unet3d$config,
|
| 1039 |
-
NULL,
|
| 1040 |
-
NULL,
|
| 1041 |
-
0
|
| 1042 |
-
);
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
return (PyObject *)result;
|
| 1046 |
-
}
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml() {
|
| 1051 |
-
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
| 1052 |
-
impl_models$unet3d$config$$$function__2__load_config_yaml,
|
| 1053 |
-
mod_consts[36],
|
| 1054 |
-
#if PYTHON_VERSION >= 0x300
|
| 1055 |
-
NULL,
|
| 1056 |
-
#endif
|
| 1057 |
-
codeobj_06a61653c58962b90971568d2c6397d2,
|
| 1058 |
-
NULL,
|
| 1059 |
-
#if PYTHON_VERSION >= 0x300
|
| 1060 |
-
NULL,
|
| 1061 |
-
NULL,
|
| 1062 |
-
#endif
|
| 1063 |
-
module_models$unet3d$config,
|
| 1064 |
-
NULL,
|
| 1065 |
-
NULL,
|
| 1066 |
-
0
|
| 1067 |
-
);
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
return (PyObject *)result;
|
| 1071 |
-
}
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
extern void _initCompiledCellType();
|
| 1075 |
-
extern void _initCompiledGeneratorType();
|
| 1076 |
-
extern void _initCompiledFunctionType();
|
| 1077 |
-
extern void _initCompiledMethodType();
|
| 1078 |
-
extern void _initCompiledFrameType();
|
| 1079 |
-
|
| 1080 |
-
extern PyTypeObject Nuitka_Loader_Type;
|
| 1081 |
-
|
| 1082 |
-
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
|
| 1083 |
-
// Provide a way to create find a function via its C code and create it back
|
| 1084 |
-
// in another process, useful for multiprocessing extensions like dill
|
| 1085 |
-
extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function);
|
| 1086 |
-
|
| 1087 |
-
function_impl_code functable_models$unet3d$config[] = {
|
| 1088 |
-
impl_models$unet3d$config$$$function__1_load_config,
|
| 1089 |
-
impl_models$unet3d$config$$$function__2__load_config_yaml,
|
| 1090 |
-
NULL
|
| 1091 |
-
};
|
| 1092 |
-
|
| 1093 |
-
static char const *_reduce_compiled_function_argnames[] = {
|
| 1094 |
-
"func",
|
| 1095 |
-
NULL
|
| 1096 |
-
};
|
| 1097 |
-
|
| 1098 |
-
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
|
| 1099 |
-
PyObject *func;
|
| 1100 |
-
|
| 1101 |
-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) {
|
| 1102 |
-
return NULL;
|
| 1103 |
-
}
|
| 1104 |
-
|
| 1105 |
-
if (Nuitka_Function_Check(func) == false) {
|
| 1106 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function");
|
| 1107 |
-
return NULL;
|
| 1108 |
-
}
|
| 1109 |
-
|
| 1110 |
-
struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func;
|
| 1111 |
-
|
| 1112 |
-
function_impl_code *current = functable_models$unet3d$config;
|
| 1113 |
-
int offset = 0;
|
| 1114 |
-
|
| 1115 |
-
while (*current != NULL) {
|
| 1116 |
-
if (*current == function->m_c_code) {
|
| 1117 |
-
break;
|
| 1118 |
-
}
|
| 1119 |
-
|
| 1120 |
-
current += 1;
|
| 1121 |
-
offset += 1;
|
| 1122 |
-
}
|
| 1123 |
-
|
| 1124 |
-
if (*current == NULL) {
|
| 1125 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module.");
|
| 1126 |
-
return NULL;
|
| 1127 |
-
}
|
| 1128 |
-
|
| 1129 |
-
PyObject *code_object_desc = PyTuple_New(6);
|
| 1130 |
-
PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename);
|
| 1131 |
-
PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name);
|
| 1132 |
-
PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno));
|
| 1133 |
-
PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames);
|
| 1134 |
-
PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount));
|
| 1135 |
-
PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags));
|
| 1136 |
-
|
| 1137 |
-
CHECK_OBJECT_DEEP(code_object_desc);
|
| 1138 |
-
|
| 1139 |
-
PyObject *result = PyTuple_New(4);
|
| 1140 |
-
PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset));
|
| 1141 |
-
PyTuple_SET_ITEM(result, 1, code_object_desc);
|
| 1142 |
-
PyTuple_SET_ITEM0(result, 2, function->m_defaults);
|
| 1143 |
-
PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None);
|
| 1144 |
-
|
| 1145 |
-
CHECK_OBJECT_DEEP(result);
|
| 1146 |
-
|
| 1147 |
-
return result;
|
| 1148 |
-
}
|
| 1149 |
-
|
| 1150 |
-
static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function,
|
| 1151 |
-
METH_VARARGS | METH_KEYWORDS, NULL};
|
| 1152 |
-
|
| 1153 |
-
static char const *_create_compiled_function_argnames[] = {
|
| 1154 |
-
"func",
|
| 1155 |
-
"code_object_desc",
|
| 1156 |
-
"defaults",
|
| 1157 |
-
"doc",
|
| 1158 |
-
NULL
|
| 1159 |
-
};
|
| 1160 |
-
|
| 1161 |
-
|
| 1162 |
-
static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
|
| 1163 |
-
CHECK_OBJECT_DEEP(args);
|
| 1164 |
-
|
| 1165 |
-
PyObject *func;
|
| 1166 |
-
PyObject *code_object_desc;
|
| 1167 |
-
PyObject *defaults;
|
| 1168 |
-
PyObject *doc;
|
| 1169 |
-
|
| 1170 |
-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) {
|
| 1171 |
-
return NULL;
|
| 1172 |
-
}
|
| 1173 |
-
|
| 1174 |
-
int offset = PyLong_AsLong(func);
|
| 1175 |
-
|
| 1176 |
-
if (offset == -1 && ERROR_OCCURRED()) {
|
| 1177 |
-
return NULL;
|
| 1178 |
-
}
|
| 1179 |
-
|
| 1180 |
-
if (offset > sizeof(functable_models$unet3d$config) || offset < 0) {
|
| 1181 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function.");
|
| 1182 |
-
return NULL;
|
| 1183 |
-
}
|
| 1184 |
-
|
| 1185 |
-
PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0);
|
| 1186 |
-
PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1);
|
| 1187 |
-
PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2);
|
| 1188 |
-
int line_int = PyLong_AsLong(line);
|
| 1189 |
-
assert(!ERROR_OCCURRED());
|
| 1190 |
-
|
| 1191 |
-
PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3);
|
| 1192 |
-
PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4);
|
| 1193 |
-
int arg_count_int = PyLong_AsLong(arg_count);
|
| 1194 |
-
assert(!ERROR_OCCURRED());
|
| 1195 |
-
PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5);
|
| 1196 |
-
int flags_int = PyLong_AsLong(flags);
|
| 1197 |
-
assert(!ERROR_OCCURRED());
|
| 1198 |
-
|
| 1199 |
-
PyCodeObject *code_object = MAKE_CODEOBJECT(
|
| 1200 |
-
filename,
|
| 1201 |
-
line_int,
|
| 1202 |
-
flags_int,
|
| 1203 |
-
function_name,
|
| 1204 |
-
argnames,
|
| 1205 |
-
NULL, // freevars
|
| 1206 |
-
arg_count_int,
|
| 1207 |
-
0, // TODO: Missing kw_only_count
|
| 1208 |
-
0 // TODO: Missing pos_only_count
|
| 1209 |
-
);
|
| 1210 |
-
|
| 1211 |
-
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
| 1212 |
-
functable_models$unet3d$config[offset],
|
| 1213 |
-
code_object->co_name,
|
| 1214 |
-
#if PYTHON_VERSION >= 0x300
|
| 1215 |
-
NULL, // TODO: Not transferring qualname yet
|
| 1216 |
-
#endif
|
| 1217 |
-
code_object,
|
| 1218 |
-
defaults,
|
| 1219 |
-
#if PYTHON_VERSION >= 0x300
|
| 1220 |
-
NULL, // kwdefaults are done on the outside currently
|
| 1221 |
-
NULL, // TODO: Not transferring annotations
|
| 1222 |
-
#endif
|
| 1223 |
-
module_models$unet3d$config,
|
| 1224 |
-
doc,
|
| 1225 |
-
NULL,
|
| 1226 |
-
0
|
| 1227 |
-
);
|
| 1228 |
-
|
| 1229 |
-
return (PyObject *)result;
|
| 1230 |
-
}
|
| 1231 |
-
|
| 1232 |
-
static PyMethodDef _method_def_create_compiled_function = {
|
| 1233 |
-
"create_compiled_function",
|
| 1234 |
-
(PyCFunction)_create_compiled_function,
|
| 1235 |
-
METH_VARARGS | METH_KEYWORDS, NULL
|
| 1236 |
-
};
|
| 1237 |
-
|
| 1238 |
-
|
| 1239 |
-
#endif
|
| 1240 |
-
|
| 1241 |
-
// Internal entry point for module code.
|
| 1242 |
-
PyObject *modulecode_models$unet3d$config(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) {
|
| 1243 |
-
module_models$unet3d$config = module;
|
| 1244 |
-
|
| 1245 |
-
#ifdef _NUITKA_MODULE
|
| 1246 |
-
// In case of a stand alone extension module, need to call initialization
|
| 1247 |
-
// the init here because that's the first and only time we are going to get
|
| 1248 |
-
// called here.
|
| 1249 |
-
|
| 1250 |
-
// Initialize the constant values used.
|
| 1251 |
-
_initBuiltinModule();
|
| 1252 |
-
createGlobalConstants();
|
| 1253 |
-
|
| 1254 |
-
/* Initialize the compiled types of Nuitka. */
|
| 1255 |
-
_initCompiledCellType();
|
| 1256 |
-
_initCompiledGeneratorType();
|
| 1257 |
-
_initCompiledFunctionType();
|
| 1258 |
-
_initCompiledMethodType();
|
| 1259 |
-
_initCompiledFrameType();
|
| 1260 |
-
|
| 1261 |
-
#if PYTHON_VERSION < 0x300
|
| 1262 |
-
_initSlotCompare();
|
| 1263 |
-
#endif
|
| 1264 |
-
#if PYTHON_VERSION >= 0x270
|
| 1265 |
-
_initSlotIternext();
|
| 1266 |
-
#endif
|
| 1267 |
-
|
| 1268 |
-
patchBuiltinModule();
|
| 1269 |
-
patchTypeComparison();
|
| 1270 |
-
|
| 1271 |
-
// Enable meta path based loader if not already done.
|
| 1272 |
-
#ifdef _NUITKA_TRACE
|
| 1273 |
-
PRINT_STRING("models.unet3d.config: Calling setupMetaPathBasedLoader().\n");
|
| 1274 |
-
#endif
|
| 1275 |
-
setupMetaPathBasedLoader();
|
| 1276 |
-
|
| 1277 |
-
#if PYTHON_VERSION >= 0x300
|
| 1278 |
-
patchInspectModule();
|
| 1279 |
-
#endif
|
| 1280 |
-
|
| 1281 |
-
#endif
|
| 1282 |
-
|
| 1283 |
-
/* The constants only used by this module are created now. */
|
| 1284 |
-
#ifdef _NUITKA_TRACE
|
| 1285 |
-
PRINT_STRING("models.unet3d.config: Calling createModuleConstants().\n");
|
| 1286 |
-
#endif
|
| 1287 |
-
createModuleConstants();
|
| 1288 |
-
|
| 1289 |
-
/* The code objects used by this module are created now. */
|
| 1290 |
-
#ifdef _NUITKA_TRACE
|
| 1291 |
-
PRINT_STRING("models.unet3d.config: Calling createModuleCodeObjects().\n");
|
| 1292 |
-
#endif
|
| 1293 |
-
createModuleCodeObjects();
|
| 1294 |
-
|
| 1295 |
-
// PRINT_STRING("in initmodels$unet3d$config\n");
|
| 1296 |
-
|
| 1297 |
-
// Create the module object first. There are no methods initially, all are
|
| 1298 |
-
// added dynamically in actual code only. Also no "__doc__" is initially
|
| 1299 |
-
// set at this time, as it could not contain NUL characters this way, they
|
| 1300 |
-
// are instead set in early module code. No "self" for modules, we have no
|
| 1301 |
-
// use for it.
|
| 1302 |
-
|
| 1303 |
-
moduledict_models$unet3d$config = MODULE_DICT(module_models$unet3d$config);
|
| 1304 |
-
|
| 1305 |
-
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
|
| 1306 |
-
registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function);
|
| 1307 |
-
#endif
|
| 1308 |
-
|
| 1309 |
-
// Set "__compiled__" to what version information we have.
|
| 1310 |
-
UPDATE_STRING_DICT0(
|
| 1311 |
-
moduledict_models$unet3d$config,
|
| 1312 |
-
(Nuitka_StringObject *)const_str_plain___compiled__,
|
| 1313 |
-
Nuitka_dunder_compiled_value
|
| 1314 |
-
);
|
| 1315 |
-
|
| 1316 |
-
// Update "__package__" value to what it ought to be.
|
| 1317 |
-
{
|
| 1318 |
-
#if 0
|
| 1319 |
-
UPDATE_STRING_DICT0(
|
| 1320 |
-
moduledict_models$unet3d$config,
|
| 1321 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 1322 |
-
const_str_empty
|
| 1323 |
-
);
|
| 1324 |
-
#elif 0
|
| 1325 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__);
|
| 1326 |
-
|
| 1327 |
-
UPDATE_STRING_DICT0(
|
| 1328 |
-
moduledict_models$unet3d$config,
|
| 1329 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 1330 |
-
module_name
|
| 1331 |
-
);
|
| 1332 |
-
#else
|
| 1333 |
-
|
| 1334 |
-
#if PYTHON_VERSION < 0x300
|
| 1335 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__);
|
| 1336 |
-
char const *module_name_cstr = PyString_AS_STRING(module_name);
|
| 1337 |
-
|
| 1338 |
-
char const *last_dot = strrchr(module_name_cstr, '.');
|
| 1339 |
-
|
| 1340 |
-
if (last_dot != NULL) {
|
| 1341 |
-
UPDATE_STRING_DICT1(
|
| 1342 |
-
moduledict_models$unet3d$config,
|
| 1343 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 1344 |
-
PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr)
|
| 1345 |
-
);
|
| 1346 |
-
}
|
| 1347 |
-
#else
|
| 1348 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__);
|
| 1349 |
-
Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1);
|
| 1350 |
-
|
| 1351 |
-
if (dot_index != -1) {
|
| 1352 |
-
UPDATE_STRING_DICT1(
|
| 1353 |
-
moduledict_models$unet3d$config,
|
| 1354 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 1355 |
-
PyUnicode_Substring(module_name, 0, dot_index)
|
| 1356 |
-
);
|
| 1357 |
-
}
|
| 1358 |
-
#endif
|
| 1359 |
-
#endif
|
| 1360 |
-
}
|
| 1361 |
-
|
| 1362 |
-
CHECK_OBJECT(module_models$unet3d$config);
|
| 1363 |
-
|
| 1364 |
-
// For deep importing of a module we need to have "__builtins__", so we set
|
| 1365 |
-
// it ourselves in the same way than CPython does. Note: This must be done
|
| 1366 |
-
// before the frame object is allocated, or else it may fail.
|
| 1367 |
-
|
| 1368 |
-
if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) {
|
| 1369 |
-
PyObject *value = (PyObject *)builtin_module;
|
| 1370 |
-
|
| 1371 |
-
// Check if main module, not a dict then but the module itself.
|
| 1372 |
-
#if !defined(_NUITKA_EXE) || !0
|
| 1373 |
-
value = PyModule_GetDict(value);
|
| 1374 |
-
#endif
|
| 1375 |
-
|
| 1376 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___builtins__, value);
|
| 1377 |
-
}
|
| 1378 |
-
|
| 1379 |
-
#if PYTHON_VERSION >= 0x300
|
| 1380 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type);
|
| 1381 |
-
#endif
|
| 1382 |
-
|
| 1383 |
-
#if PYTHON_VERSION >= 0x340
|
| 1384 |
-
// Set the "__spec__" value
|
| 1385 |
-
|
| 1386 |
-
#if 0
|
| 1387 |
-
// Main modules just get "None" as spec.
|
| 1388 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___spec__, Py_None);
|
| 1389 |
-
#else
|
| 1390 |
-
// Other modules get a "ModuleSpec" from the standard mechanism.
|
| 1391 |
-
{
|
| 1392 |
-
PyObject *bootstrap_module = getImportLibBootstrapModule();
|
| 1393 |
-
CHECK_OBJECT(bootstrap_module);
|
| 1394 |
-
|
| 1395 |
-
PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module");
|
| 1396 |
-
CHECK_OBJECT(_spec_from_module);
|
| 1397 |
-
|
| 1398 |
-
PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$config);
|
| 1399 |
-
Py_DECREF(_spec_from_module);
|
| 1400 |
-
|
| 1401 |
-
// We can assume this to never fail, or else we are in trouble anyway.
|
| 1402 |
-
// CHECK_OBJECT(spec_value);
|
| 1403 |
-
|
| 1404 |
-
if (spec_value == NULL) {
|
| 1405 |
-
PyErr_PrintEx(0);
|
| 1406 |
-
abort();
|
| 1407 |
-
}
|
| 1408 |
-
|
| 1409 |
-
// Mark the execution in the "__spec__" value.
|
| 1410 |
-
SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True);
|
| 1411 |
-
|
| 1412 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___spec__, spec_value);
|
| 1413 |
-
}
|
| 1414 |
-
#endif
|
| 1415 |
-
#endif
|
| 1416 |
-
|
| 1417 |
-
// Temp variables if any
|
| 1418 |
-
struct Nuitka_FrameObject *frame_0d287422afe948efe554fb353d458e08;
|
| 1419 |
-
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
| 1420 |
-
bool tmp_result;
|
| 1421 |
-
PyObject *exception_type = NULL;
|
| 1422 |
-
PyObject *exception_value = NULL;
|
| 1423 |
-
PyTracebackObject *exception_tb = NULL;
|
| 1424 |
-
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
| 1425 |
-
|
| 1426 |
-
// Module code.
|
| 1427 |
-
{
|
| 1428 |
-
PyObject *tmp_assign_source_1;
|
| 1429 |
-
tmp_assign_source_1 = Py_None;
|
| 1430 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[23], tmp_assign_source_1);
|
| 1431 |
-
}
|
| 1432 |
-
{
|
| 1433 |
-
PyObject *tmp_assign_source_2;
|
| 1434 |
-
tmp_assign_source_2 = module_filename_obj;
|
| 1435 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[24], tmp_assign_source_2);
|
| 1436 |
-
}
|
| 1437 |
-
// Frame without reuse.
|
| 1438 |
-
frame_0d287422afe948efe554fb353d458e08 = MAKE_MODULE_FRAME(codeobj_0d287422afe948efe554fb353d458e08, module_models$unet3d$config);
|
| 1439 |
-
|
| 1440 |
-
// Push the new frame as the currently active one, and we should be exclusively
|
| 1441 |
-
// owning it.
|
| 1442 |
-
pushFrameStack(frame_0d287422afe948efe554fb353d458e08);
|
| 1443 |
-
assert(Py_REFCNT(frame_0d287422afe948efe554fb353d458e08) == 2);
|
| 1444 |
-
|
| 1445 |
-
// Framed code:
|
| 1446 |
-
{
|
| 1447 |
-
PyObject *tmp_assattr_name_1;
|
| 1448 |
-
PyObject *tmp_assattr_target_1;
|
| 1449 |
-
tmp_assattr_name_1 = module_filename_obj;
|
| 1450 |
-
tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[25]);
|
| 1451 |
-
|
| 1452 |
-
if (unlikely(tmp_assattr_target_1 == NULL)) {
|
| 1453 |
-
tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]);
|
| 1454 |
-
}
|
| 1455 |
-
|
| 1456 |
-
assert(!(tmp_assattr_target_1 == NULL));
|
| 1457 |
-
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[26], tmp_assattr_name_1);
|
| 1458 |
-
if (tmp_result == false) {
|
| 1459 |
-
assert(ERROR_OCCURRED());
|
| 1460 |
-
|
| 1461 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1462 |
-
|
| 1463 |
-
|
| 1464 |
-
exception_lineno = 1;
|
| 1465 |
-
|
| 1466 |
-
goto frame_exception_exit_1;
|
| 1467 |
-
}
|
| 1468 |
-
}
|
| 1469 |
-
{
|
| 1470 |
-
PyObject *tmp_assattr_name_2;
|
| 1471 |
-
PyObject *tmp_assattr_target_2;
|
| 1472 |
-
tmp_assattr_name_2 = Py_True;
|
| 1473 |
-
tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[25]);
|
| 1474 |
-
|
| 1475 |
-
if (unlikely(tmp_assattr_target_2 == NULL)) {
|
| 1476 |
-
tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]);
|
| 1477 |
-
}
|
| 1478 |
-
|
| 1479 |
-
assert(!(tmp_assattr_target_2 == NULL));
|
| 1480 |
-
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[27], tmp_assattr_name_2);
|
| 1481 |
-
if (tmp_result == false) {
|
| 1482 |
-
assert(ERROR_OCCURRED());
|
| 1483 |
-
|
| 1484 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1485 |
-
|
| 1486 |
-
|
| 1487 |
-
exception_lineno = 1;
|
| 1488 |
-
|
| 1489 |
-
goto frame_exception_exit_1;
|
| 1490 |
-
}
|
| 1491 |
-
}
|
| 1492 |
-
{
|
| 1493 |
-
PyObject *tmp_assign_source_3;
|
| 1494 |
-
tmp_assign_source_3 = Py_None;
|
| 1495 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_3);
|
| 1496 |
-
}
|
| 1497 |
-
{
|
| 1498 |
-
PyObject *tmp_assign_source_4;
|
| 1499 |
-
PyObject *tmp_name_name_1;
|
| 1500 |
-
PyObject *tmp_globals_arg_name_1;
|
| 1501 |
-
PyObject *tmp_locals_arg_name_1;
|
| 1502 |
-
PyObject *tmp_fromlist_name_1;
|
| 1503 |
-
PyObject *tmp_level_name_1;
|
| 1504 |
-
tmp_name_name_1 = mod_consts[0];
|
| 1505 |
-
tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$config;
|
| 1506 |
-
tmp_locals_arg_name_1 = Py_None;
|
| 1507 |
-
tmp_fromlist_name_1 = Py_None;
|
| 1508 |
-
tmp_level_name_1 = mod_consts[29];
|
| 1509 |
-
frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 1;
|
| 1510 |
-
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);
|
| 1511 |
-
if (tmp_assign_source_4 == NULL) {
|
| 1512 |
-
assert(ERROR_OCCURRED());
|
| 1513 |
-
|
| 1514 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1515 |
-
|
| 1516 |
-
|
| 1517 |
-
exception_lineno = 1;
|
| 1518 |
-
|
| 1519 |
-
goto frame_exception_exit_1;
|
| 1520 |
-
}
|
| 1521 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_4);
|
| 1522 |
-
}
|
| 1523 |
-
{
|
| 1524 |
-
PyObject *tmp_assign_source_5;
|
| 1525 |
-
PyObject *tmp_name_name_2;
|
| 1526 |
-
PyObject *tmp_globals_arg_name_2;
|
| 1527 |
-
PyObject *tmp_locals_arg_name_2;
|
| 1528 |
-
PyObject *tmp_fromlist_name_2;
|
| 1529 |
-
PyObject *tmp_level_name_2;
|
| 1530 |
-
tmp_name_name_2 = mod_consts[19];
|
| 1531 |
-
tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$config;
|
| 1532 |
-
tmp_locals_arg_name_2 = Py_None;
|
| 1533 |
-
tmp_fromlist_name_2 = Py_None;
|
| 1534 |
-
tmp_level_name_2 = mod_consts[29];
|
| 1535 |
-
frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 3;
|
| 1536 |
-
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);
|
| 1537 |
-
if (tmp_assign_source_5 == NULL) {
|
| 1538 |
-
assert(ERROR_OCCURRED());
|
| 1539 |
-
|
| 1540 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1541 |
-
|
| 1542 |
-
|
| 1543 |
-
exception_lineno = 3;
|
| 1544 |
-
|
| 1545 |
-
goto frame_exception_exit_1;
|
| 1546 |
-
}
|
| 1547 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[19], tmp_assign_source_5);
|
| 1548 |
-
}
|
| 1549 |
-
{
|
| 1550 |
-
PyObject *tmp_assign_source_6;
|
| 1551 |
-
PyObject *tmp_name_name_3;
|
| 1552 |
-
PyObject *tmp_globals_arg_name_3;
|
| 1553 |
-
PyObject *tmp_locals_arg_name_3;
|
| 1554 |
-
PyObject *tmp_fromlist_name_3;
|
| 1555 |
-
PyObject *tmp_level_name_3;
|
| 1556 |
-
tmp_name_name_3 = mod_consts[8];
|
| 1557 |
-
tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$config;
|
| 1558 |
-
tmp_locals_arg_name_3 = Py_None;
|
| 1559 |
-
tmp_fromlist_name_3 = Py_None;
|
| 1560 |
-
tmp_level_name_3 = mod_consts[29];
|
| 1561 |
-
frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 4;
|
| 1562 |
-
tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3);
|
| 1563 |
-
if (tmp_assign_source_6 == NULL) {
|
| 1564 |
-
assert(ERROR_OCCURRED());
|
| 1565 |
-
|
| 1566 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1567 |
-
|
| 1568 |
-
|
| 1569 |
-
exception_lineno = 4;
|
| 1570 |
-
|
| 1571 |
-
goto frame_exception_exit_1;
|
| 1572 |
-
}
|
| 1573 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6);
|
| 1574 |
-
}
|
| 1575 |
-
{
|
| 1576 |
-
PyObject *tmp_assign_source_7;
|
| 1577 |
-
PyObject *tmp_import_name_from_1;
|
| 1578 |
-
PyObject *tmp_name_name_4;
|
| 1579 |
-
PyObject *tmp_globals_arg_name_4;
|
| 1580 |
-
PyObject *tmp_locals_arg_name_4;
|
| 1581 |
-
PyObject *tmp_fromlist_name_4;
|
| 1582 |
-
PyObject *tmp_level_name_4;
|
| 1583 |
-
tmp_name_name_4 = mod_consts[30];
|
| 1584 |
-
tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$config;
|
| 1585 |
-
tmp_locals_arg_name_4 = Py_None;
|
| 1586 |
-
tmp_fromlist_name_4 = mod_consts[31];
|
| 1587 |
-
tmp_level_name_4 = mod_consts[29];
|
| 1588 |
-
frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 6;
|
| 1589 |
-
tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4);
|
| 1590 |
-
if (tmp_import_name_from_1 == NULL) {
|
| 1591 |
-
assert(ERROR_OCCURRED());
|
| 1592 |
-
|
| 1593 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1594 |
-
|
| 1595 |
-
|
| 1596 |
-
exception_lineno = 6;
|
| 1597 |
-
|
| 1598 |
-
goto frame_exception_exit_1;
|
| 1599 |
-
}
|
| 1600 |
-
if (PyModule_Check(tmp_import_name_from_1)) {
|
| 1601 |
-
tmp_assign_source_7 = IMPORT_NAME_OR_MODULE(
|
| 1602 |
-
tmp_import_name_from_1,
|
| 1603 |
-
(PyObject *)moduledict_models$unet3d$config,
|
| 1604 |
-
mod_consts[32],
|
| 1605 |
-
mod_consts[29]
|
| 1606 |
-
);
|
| 1607 |
-
} else {
|
| 1608 |
-
tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[32]);
|
| 1609 |
-
}
|
| 1610 |
-
|
| 1611 |
-
Py_DECREF(tmp_import_name_from_1);
|
| 1612 |
-
if (tmp_assign_source_7 == NULL) {
|
| 1613 |
-
assert(ERROR_OCCURRED());
|
| 1614 |
-
|
| 1615 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1616 |
-
|
| 1617 |
-
|
| 1618 |
-
exception_lineno = 6;
|
| 1619 |
-
|
| 1620 |
-
goto frame_exception_exit_1;
|
| 1621 |
-
}
|
| 1622 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_7);
|
| 1623 |
-
}
|
| 1624 |
-
{
|
| 1625 |
-
PyObject *tmp_assign_source_8;
|
| 1626 |
-
PyObject *tmp_called_instance_1;
|
| 1627 |
-
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[32]);
|
| 1628 |
-
|
| 1629 |
-
if (unlikely(tmp_called_instance_1 == NULL)) {
|
| 1630 |
-
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[32]);
|
| 1631 |
-
}
|
| 1632 |
-
|
| 1633 |
-
assert(!(tmp_called_instance_1 == NULL));
|
| 1634 |
-
frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 8;
|
| 1635 |
-
tmp_assign_source_8 = CALL_METHOD_WITH_ARGS1(
|
| 1636 |
-
tmp_called_instance_1,
|
| 1637 |
-
mod_consts[33],
|
| 1638 |
-
&PyTuple_GET_ITEM(mod_consts[34], 0)
|
| 1639 |
-
);
|
| 1640 |
-
|
| 1641 |
-
if (tmp_assign_source_8 == NULL) {
|
| 1642 |
-
assert(ERROR_OCCURRED());
|
| 1643 |
-
|
| 1644 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 1645 |
-
|
| 1646 |
-
|
| 1647 |
-
exception_lineno = 8;
|
| 1648 |
-
|
| 1649 |
-
goto frame_exception_exit_1;
|
| 1650 |
-
}
|
| 1651 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_8);
|
| 1652 |
-
}
|
| 1653 |
-
|
| 1654 |
-
// Restore frame exception if necessary.
|
| 1655 |
-
#if 0
|
| 1656 |
-
RESTORE_FRAME_EXCEPTION(frame_0d287422afe948efe554fb353d458e08);
|
| 1657 |
-
#endif
|
| 1658 |
-
popFrameStack();
|
| 1659 |
-
|
| 1660 |
-
assertFrameObject(frame_0d287422afe948efe554fb353d458e08);
|
| 1661 |
-
|
| 1662 |
-
goto frame_no_exception_1;
|
| 1663 |
-
|
| 1664 |
-
frame_exception_exit_1:;
|
| 1665 |
-
#if 0
|
| 1666 |
-
RESTORE_FRAME_EXCEPTION(frame_0d287422afe948efe554fb353d458e08);
|
| 1667 |
-
#endif
|
| 1668 |
-
|
| 1669 |
-
if (exception_tb == NULL) {
|
| 1670 |
-
exception_tb = MAKE_TRACEBACK(frame_0d287422afe948efe554fb353d458e08, exception_lineno);
|
| 1671 |
-
} else if (exception_tb->tb_frame != &frame_0d287422afe948efe554fb353d458e08->m_frame) {
|
| 1672 |
-
exception_tb = ADD_TRACEBACK(exception_tb, frame_0d287422afe948efe554fb353d458e08, exception_lineno);
|
| 1673 |
-
}
|
| 1674 |
-
|
| 1675 |
-
// Put the previous frame back on top.
|
| 1676 |
-
popFrameStack();
|
| 1677 |
-
|
| 1678 |
-
// Return the error.
|
| 1679 |
-
goto module_exception_exit;
|
| 1680 |
-
|
| 1681 |
-
frame_no_exception_1:;
|
| 1682 |
-
{
|
| 1683 |
-
PyObject *tmp_assign_source_9;
|
| 1684 |
-
|
| 1685 |
-
|
| 1686 |
-
tmp_assign_source_9 = MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config();
|
| 1687 |
-
|
| 1688 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[35], tmp_assign_source_9);
|
| 1689 |
-
}
|
| 1690 |
-
{
|
| 1691 |
-
PyObject *tmp_assign_source_10;
|
| 1692 |
-
|
| 1693 |
-
|
| 1694 |
-
tmp_assign_source_10 = MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml();
|
| 1695 |
-
|
| 1696 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_10);
|
| 1697 |
-
}
|
| 1698 |
-
|
| 1699 |
-
return module_models$unet3d$config;
|
| 1700 |
-
module_exception_exit:
|
| 1701 |
-
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
|
| 1702 |
-
return NULL;
|
| 1703 |
-
}
|
| 1704 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
medomni/models.build/module.models.unet3d.const
DELETED
|
Binary file (505 Bytes)
|
|
|
medomni/models.build/module.models.unet3d.cpp
DELETED
|
@@ -1,808 +0,0 @@
|
|
| 1 |
-
/* Generated code for Python module 'models.unet3d'
|
| 2 |
-
* created by Nuitka version 0.6.16
|
| 3 |
-
*
|
| 4 |
-
* This code is in part copyright 2021 Kay Hayen.
|
| 5 |
-
*
|
| 6 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 7 |
-
* you may not use this file except in compliance with the License.
|
| 8 |
-
* You may obtain a copy of the License at
|
| 9 |
-
*
|
| 10 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
| 11 |
-
*
|
| 12 |
-
* Unless required by applicable law or agreed to in writing, software
|
| 13 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 |
-
* See the License for the specific language governing permissions and
|
| 16 |
-
* limitations under the License.
|
| 17 |
-
*/
|
| 18 |
-
|
| 19 |
-
#include "nuitka/prelude.h"
|
| 20 |
-
|
| 21 |
-
#include "nuitka/unfreezing.h"
|
| 22 |
-
|
| 23 |
-
#include "__helpers.h"
|
| 24 |
-
|
| 25 |
-
/* The "module_models$unet3d" is a Python object pointer of module type.
|
| 26 |
-
*
|
| 27 |
-
* Note: For full compatibility with CPython, every module variable access
|
| 28 |
-
* needs to go through it except for cases where the module cannot possibly
|
| 29 |
-
* have changed in the mean time.
|
| 30 |
-
*/
|
| 31 |
-
|
| 32 |
-
PyObject *module_models$unet3d;
|
| 33 |
-
PyDictObject *moduledict_models$unet3d;
|
| 34 |
-
|
| 35 |
-
/* The declarations of module constants used, if any. */
|
| 36 |
-
static PyObject *mod_consts[19];
|
| 37 |
-
|
| 38 |
-
static PyObject *module_filename_obj = NULL;
|
| 39 |
-
|
| 40 |
-
/* Indicator if this modules private constants were created yet. */
|
| 41 |
-
static bool constants_created = false;
|
| 42 |
-
|
| 43 |
-
/* Function to create module private constants. */
|
| 44 |
-
static void createModuleConstants(void) {
|
| 45 |
-
if (constants_created == false) {
|
| 46 |
-
loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d"));
|
| 47 |
-
constants_created = true;
|
| 48 |
-
}
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
/* For multiprocessing, we want to be able to initialize the __main__ constants. */
|
| 52 |
-
#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0
|
| 53 |
-
void createMainModuleConstants(void) {
|
| 54 |
-
createModuleConstants();
|
| 55 |
-
}
|
| 56 |
-
#endif
|
| 57 |
-
|
| 58 |
-
/* Function to verify module private constants for non-corruption. */
|
| 59 |
-
#ifndef __NUITKA_NO_ASSERT__
|
| 60 |
-
void checkModuleConstants_models$unet3d(void) {
|
| 61 |
-
// The module may not have been used at all, then ignore this.
|
| 62 |
-
if (constants_created == false) return;
|
| 63 |
-
|
| 64 |
-
checkConstantsBlob(&mod_consts[0], "models.unet3d");
|
| 65 |
-
}
|
| 66 |
-
#endif
|
| 67 |
-
|
| 68 |
-
// The module code objects.
|
| 69 |
-
static PyCodeObject *codeobj_5e387c7afb8f5b1764470a49d9353be7;
|
| 70 |
-
|
| 71 |
-
static void createModuleCodeObjects(void) {
|
| 72 |
-
module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[17]); CHECK_OBJECT(module_filename_obj);
|
| 73 |
-
codeobj_5e387c7afb8f5b1764470a49d9353be7 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[18], NULL, NULL, 0, 0, 0);
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
// The module function declarations.
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
// The module function definitions.
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
extern void _initCompiledCellType();
|
| 83 |
-
extern void _initCompiledGeneratorType();
|
| 84 |
-
extern void _initCompiledFunctionType();
|
| 85 |
-
extern void _initCompiledMethodType();
|
| 86 |
-
extern void _initCompiledFrameType();
|
| 87 |
-
|
| 88 |
-
extern PyTypeObject Nuitka_Loader_Type;
|
| 89 |
-
|
| 90 |
-
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
|
| 91 |
-
// Provide a way to create find a function via its C code and create it back
|
| 92 |
-
// in another process, useful for multiprocessing extensions like dill
|
| 93 |
-
extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function);
|
| 94 |
-
|
| 95 |
-
function_impl_code functable_models$unet3d[] = {
|
| 96 |
-
|
| 97 |
-
NULL
|
| 98 |
-
};
|
| 99 |
-
|
| 100 |
-
static char const *_reduce_compiled_function_argnames[] = {
|
| 101 |
-
"func",
|
| 102 |
-
NULL
|
| 103 |
-
};
|
| 104 |
-
|
| 105 |
-
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
|
| 106 |
-
PyObject *func;
|
| 107 |
-
|
| 108 |
-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) {
|
| 109 |
-
return NULL;
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
if (Nuitka_Function_Check(func) == false) {
|
| 113 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function");
|
| 114 |
-
return NULL;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func;
|
| 118 |
-
|
| 119 |
-
function_impl_code *current = functable_models$unet3d;
|
| 120 |
-
int offset = 0;
|
| 121 |
-
|
| 122 |
-
while (*current != NULL) {
|
| 123 |
-
if (*current == function->m_c_code) {
|
| 124 |
-
break;
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
current += 1;
|
| 128 |
-
offset += 1;
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
if (*current == NULL) {
|
| 132 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module.");
|
| 133 |
-
return NULL;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
-
PyObject *code_object_desc = PyTuple_New(6);
|
| 137 |
-
PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename);
|
| 138 |
-
PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name);
|
| 139 |
-
PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno));
|
| 140 |
-
PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames);
|
| 141 |
-
PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount));
|
| 142 |
-
PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags));
|
| 143 |
-
|
| 144 |
-
CHECK_OBJECT_DEEP(code_object_desc);
|
| 145 |
-
|
| 146 |
-
PyObject *result = PyTuple_New(4);
|
| 147 |
-
PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset));
|
| 148 |
-
PyTuple_SET_ITEM(result, 1, code_object_desc);
|
| 149 |
-
PyTuple_SET_ITEM0(result, 2, function->m_defaults);
|
| 150 |
-
PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None);
|
| 151 |
-
|
| 152 |
-
CHECK_OBJECT_DEEP(result);
|
| 153 |
-
|
| 154 |
-
return result;
|
| 155 |
-
}
|
| 156 |
-
|
| 157 |
-
static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function,
|
| 158 |
-
METH_VARARGS | METH_KEYWORDS, NULL};
|
| 159 |
-
|
| 160 |
-
static char const *_create_compiled_function_argnames[] = {
|
| 161 |
-
"func",
|
| 162 |
-
"code_object_desc",
|
| 163 |
-
"defaults",
|
| 164 |
-
"doc",
|
| 165 |
-
NULL
|
| 166 |
-
};
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
|
| 170 |
-
CHECK_OBJECT_DEEP(args);
|
| 171 |
-
|
| 172 |
-
PyObject *func;
|
| 173 |
-
PyObject *code_object_desc;
|
| 174 |
-
PyObject *defaults;
|
| 175 |
-
PyObject *doc;
|
| 176 |
-
|
| 177 |
-
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) {
|
| 178 |
-
return NULL;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
int offset = PyLong_AsLong(func);
|
| 182 |
-
|
| 183 |
-
if (offset == -1 && ERROR_OCCURRED()) {
|
| 184 |
-
return NULL;
|
| 185 |
-
}
|
| 186 |
-
|
| 187 |
-
if (offset > sizeof(functable_models$unet3d) || offset < 0) {
|
| 188 |
-
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function.");
|
| 189 |
-
return NULL;
|
| 190 |
-
}
|
| 191 |
-
|
| 192 |
-
PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0);
|
| 193 |
-
PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1);
|
| 194 |
-
PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2);
|
| 195 |
-
int line_int = PyLong_AsLong(line);
|
| 196 |
-
assert(!ERROR_OCCURRED());
|
| 197 |
-
|
| 198 |
-
PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3);
|
| 199 |
-
PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4);
|
| 200 |
-
int arg_count_int = PyLong_AsLong(arg_count);
|
| 201 |
-
assert(!ERROR_OCCURRED());
|
| 202 |
-
PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5);
|
| 203 |
-
int flags_int = PyLong_AsLong(flags);
|
| 204 |
-
assert(!ERROR_OCCURRED());
|
| 205 |
-
|
| 206 |
-
PyCodeObject *code_object = MAKE_CODEOBJECT(
|
| 207 |
-
filename,
|
| 208 |
-
line_int,
|
| 209 |
-
flags_int,
|
| 210 |
-
function_name,
|
| 211 |
-
argnames,
|
| 212 |
-
NULL, // freevars
|
| 213 |
-
arg_count_int,
|
| 214 |
-
0, // TODO: Missing kw_only_count
|
| 215 |
-
0 // TODO: Missing pos_only_count
|
| 216 |
-
);
|
| 217 |
-
|
| 218 |
-
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
| 219 |
-
functable_models$unet3d[offset],
|
| 220 |
-
code_object->co_name,
|
| 221 |
-
#if PYTHON_VERSION >= 0x300
|
| 222 |
-
NULL, // TODO: Not transferring qualname yet
|
| 223 |
-
#endif
|
| 224 |
-
code_object,
|
| 225 |
-
defaults,
|
| 226 |
-
#if PYTHON_VERSION >= 0x300
|
| 227 |
-
NULL, // kwdefaults are done on the outside currently
|
| 228 |
-
NULL, // TODO: Not transferring annotations
|
| 229 |
-
#endif
|
| 230 |
-
module_models$unet3d,
|
| 231 |
-
doc,
|
| 232 |
-
NULL,
|
| 233 |
-
0
|
| 234 |
-
);
|
| 235 |
-
|
| 236 |
-
return (PyObject *)result;
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
static PyMethodDef _method_def_create_compiled_function = {
|
| 240 |
-
"create_compiled_function",
|
| 241 |
-
(PyCFunction)_create_compiled_function,
|
| 242 |
-
METH_VARARGS | METH_KEYWORDS, NULL
|
| 243 |
-
};
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
#endif
|
| 247 |
-
|
| 248 |
-
// Internal entry point for module code.
|
| 249 |
-
PyObject *modulecode_models$unet3d(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) {
|
| 250 |
-
module_models$unet3d = module;
|
| 251 |
-
|
| 252 |
-
#ifdef _NUITKA_MODULE
|
| 253 |
-
// In case of a stand alone extension module, need to call initialization
|
| 254 |
-
// the init here because that's the first and only time we are going to get
|
| 255 |
-
// called here.
|
| 256 |
-
|
| 257 |
-
// Initialize the constant values used.
|
| 258 |
-
_initBuiltinModule();
|
| 259 |
-
createGlobalConstants();
|
| 260 |
-
|
| 261 |
-
/* Initialize the compiled types of Nuitka. */
|
| 262 |
-
_initCompiledCellType();
|
| 263 |
-
_initCompiledGeneratorType();
|
| 264 |
-
_initCompiledFunctionType();
|
| 265 |
-
_initCompiledMethodType();
|
| 266 |
-
_initCompiledFrameType();
|
| 267 |
-
|
| 268 |
-
#if PYTHON_VERSION < 0x300
|
| 269 |
-
_initSlotCompare();
|
| 270 |
-
#endif
|
| 271 |
-
#if PYTHON_VERSION >= 0x270
|
| 272 |
-
_initSlotIternext();
|
| 273 |
-
#endif
|
| 274 |
-
|
| 275 |
-
patchBuiltinModule();
|
| 276 |
-
patchTypeComparison();
|
| 277 |
-
|
| 278 |
-
// Enable meta path based loader if not already done.
|
| 279 |
-
#ifdef _NUITKA_TRACE
|
| 280 |
-
PRINT_STRING("models.unet3d: Calling setupMetaPathBasedLoader().\n");
|
| 281 |
-
#endif
|
| 282 |
-
setupMetaPathBasedLoader();
|
| 283 |
-
|
| 284 |
-
#if PYTHON_VERSION >= 0x300
|
| 285 |
-
patchInspectModule();
|
| 286 |
-
#endif
|
| 287 |
-
|
| 288 |
-
#endif
|
| 289 |
-
|
| 290 |
-
/* The constants only used by this module are created now. */
|
| 291 |
-
#ifdef _NUITKA_TRACE
|
| 292 |
-
PRINT_STRING("models.unet3d: Calling createModuleConstants().\n");
|
| 293 |
-
#endif
|
| 294 |
-
createModuleConstants();
|
| 295 |
-
|
| 296 |
-
/* The code objects used by this module are created now. */
|
| 297 |
-
#ifdef _NUITKA_TRACE
|
| 298 |
-
PRINT_STRING("models.unet3d: Calling createModuleCodeObjects().\n");
|
| 299 |
-
#endif
|
| 300 |
-
createModuleCodeObjects();
|
| 301 |
-
|
| 302 |
-
// PRINT_STRING("in initmodels$unet3d\n");
|
| 303 |
-
|
| 304 |
-
// Create the module object first. There are no methods initially, all are
|
| 305 |
-
// added dynamically in actual code only. Also no "__doc__" is initially
|
| 306 |
-
// set at this time, as it could not contain NUL characters this way, they
|
| 307 |
-
// are instead set in early module code. No "self" for modules, we have no
|
| 308 |
-
// use for it.
|
| 309 |
-
|
| 310 |
-
moduledict_models$unet3d = MODULE_DICT(module_models$unet3d);
|
| 311 |
-
|
| 312 |
-
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
|
| 313 |
-
registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function);
|
| 314 |
-
#endif
|
| 315 |
-
|
| 316 |
-
// Set "__compiled__" to what version information we have.
|
| 317 |
-
UPDATE_STRING_DICT0(
|
| 318 |
-
moduledict_models$unet3d,
|
| 319 |
-
(Nuitka_StringObject *)const_str_plain___compiled__,
|
| 320 |
-
Nuitka_dunder_compiled_value
|
| 321 |
-
);
|
| 322 |
-
|
| 323 |
-
// Update "__package__" value to what it ought to be.
|
| 324 |
-
{
|
| 325 |
-
#if 0
|
| 326 |
-
UPDATE_STRING_DICT0(
|
| 327 |
-
moduledict_models$unet3d,
|
| 328 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 329 |
-
const_str_empty
|
| 330 |
-
);
|
| 331 |
-
#elif 1
|
| 332 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__);
|
| 333 |
-
|
| 334 |
-
UPDATE_STRING_DICT0(
|
| 335 |
-
moduledict_models$unet3d,
|
| 336 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 337 |
-
module_name
|
| 338 |
-
);
|
| 339 |
-
#else
|
| 340 |
-
|
| 341 |
-
#if PYTHON_VERSION < 0x300
|
| 342 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__);
|
| 343 |
-
char const *module_name_cstr = PyString_AS_STRING(module_name);
|
| 344 |
-
|
| 345 |
-
char const *last_dot = strrchr(module_name_cstr, '.');
|
| 346 |
-
|
| 347 |
-
if (last_dot != NULL) {
|
| 348 |
-
UPDATE_STRING_DICT1(
|
| 349 |
-
moduledict_models$unet3d,
|
| 350 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 351 |
-
PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr)
|
| 352 |
-
);
|
| 353 |
-
}
|
| 354 |
-
#else
|
| 355 |
-
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__);
|
| 356 |
-
Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1);
|
| 357 |
-
|
| 358 |
-
if (dot_index != -1) {
|
| 359 |
-
UPDATE_STRING_DICT1(
|
| 360 |
-
moduledict_models$unet3d,
|
| 361 |
-
(Nuitka_StringObject *)const_str_plain___package__,
|
| 362 |
-
PyUnicode_Substring(module_name, 0, dot_index)
|
| 363 |
-
);
|
| 364 |
-
}
|
| 365 |
-
#endif
|
| 366 |
-
#endif
|
| 367 |
-
}
|
| 368 |
-
|
| 369 |
-
CHECK_OBJECT(module_models$unet3d);
|
| 370 |
-
|
| 371 |
-
// For deep importing of a module we need to have "__builtins__", so we set
|
| 372 |
-
// it ourselves in the same way than CPython does. Note: This must be done
|
| 373 |
-
// before the frame object is allocated, or else it may fail.
|
| 374 |
-
|
| 375 |
-
if (GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) {
|
| 376 |
-
PyObject *value = (PyObject *)builtin_module;
|
| 377 |
-
|
| 378 |
-
// Check if main module, not a dict then but the module itself.
|
| 379 |
-
#if !defined(_NUITKA_EXE) || !0
|
| 380 |
-
value = PyModule_GetDict(value);
|
| 381 |
-
#endif
|
| 382 |
-
|
| 383 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___builtins__, value);
|
| 384 |
-
}
|
| 385 |
-
|
| 386 |
-
#if PYTHON_VERSION >= 0x300
|
| 387 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type);
|
| 388 |
-
#endif
|
| 389 |
-
|
| 390 |
-
#if PYTHON_VERSION >= 0x340
|
| 391 |
-
// Set the "__spec__" value
|
| 392 |
-
|
| 393 |
-
#if 0
|
| 394 |
-
// Main modules just get "None" as spec.
|
| 395 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___spec__, Py_None);
|
| 396 |
-
#else
|
| 397 |
-
// Other modules get a "ModuleSpec" from the standard mechanism.
|
| 398 |
-
{
|
| 399 |
-
PyObject *bootstrap_module = getImportLibBootstrapModule();
|
| 400 |
-
CHECK_OBJECT(bootstrap_module);
|
| 401 |
-
|
| 402 |
-
PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module");
|
| 403 |
-
CHECK_OBJECT(_spec_from_module);
|
| 404 |
-
|
| 405 |
-
PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d);
|
| 406 |
-
Py_DECREF(_spec_from_module);
|
| 407 |
-
|
| 408 |
-
// We can assume this to never fail, or else we are in trouble anyway.
|
| 409 |
-
// CHECK_OBJECT(spec_value);
|
| 410 |
-
|
| 411 |
-
if (spec_value == NULL) {
|
| 412 |
-
PyErr_PrintEx(0);
|
| 413 |
-
abort();
|
| 414 |
-
}
|
| 415 |
-
|
| 416 |
-
// Mark the execution in the "__spec__" value.
|
| 417 |
-
SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True);
|
| 418 |
-
|
| 419 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___spec__, spec_value);
|
| 420 |
-
}
|
| 421 |
-
#endif
|
| 422 |
-
#endif
|
| 423 |
-
|
| 424 |
-
// Temp variables if any
|
| 425 |
-
struct Nuitka_FrameObject *frame_5e387c7afb8f5b1764470a49d9353be7;
|
| 426 |
-
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
| 427 |
-
PyObject *exception_type = NULL;
|
| 428 |
-
PyObject *exception_value = NULL;
|
| 429 |
-
PyTracebackObject *exception_tb = NULL;
|
| 430 |
-
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
| 431 |
-
PyObject *tmp_dictset_value;
|
| 432 |
-
PyObject *tmp_dictset_dict;
|
| 433 |
-
PyObject *tmp_dictset_key;
|
| 434 |
-
int tmp_res;
|
| 435 |
-
bool tmp_result;
|
| 436 |
-
|
| 437 |
-
// Module code.
|
| 438 |
-
{
|
| 439 |
-
PyObject *tmp_assign_source_1;
|
| 440 |
-
tmp_assign_source_1 = Py_None;
|
| 441 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_1);
|
| 442 |
-
}
|
| 443 |
-
{
|
| 444 |
-
PyObject *tmp_assign_source_2;
|
| 445 |
-
tmp_assign_source_2 = module_filename_obj;
|
| 446 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_2);
|
| 447 |
-
}
|
| 448 |
-
// Frame without reuse.
|
| 449 |
-
frame_5e387c7afb8f5b1764470a49d9353be7 = MAKE_MODULE_FRAME(codeobj_5e387c7afb8f5b1764470a49d9353be7, module_models$unet3d);
|
| 450 |
-
|
| 451 |
-
// Push the new frame as the currently active one, and we should be exclusively
|
| 452 |
-
// owning it.
|
| 453 |
-
pushFrameStack(frame_5e387c7afb8f5b1764470a49d9353be7);
|
| 454 |
-
assert(Py_REFCNT(frame_5e387c7afb8f5b1764470a49d9353be7) == 2);
|
| 455 |
-
|
| 456 |
-
// Framed code:
|
| 457 |
-
{
|
| 458 |
-
PyObject *tmp_assign_source_3;
|
| 459 |
-
PyObject *tmp_list_element_1;
|
| 460 |
-
PyObject *tmp_called_name_1;
|
| 461 |
-
PyObject *tmp_expression_name_1;
|
| 462 |
-
PyObject *tmp_args_element_name_1;
|
| 463 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 464 |
-
{
|
| 465 |
-
PyObject *hard_module = IMPORT_HARD_OS();
|
| 466 |
-
tmp_expression_name_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[2]);
|
| 467 |
-
}
|
| 468 |
-
|
| 469 |
-
if (tmp_expression_name_1 == NULL) {
|
| 470 |
-
assert(ERROR_OCCURRED());
|
| 471 |
-
|
| 472 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
exception_lineno = 1;
|
| 476 |
-
|
| 477 |
-
goto frame_exception_exit_1;
|
| 478 |
-
}
|
| 479 |
-
tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]);
|
| 480 |
-
if (tmp_called_name_1 == NULL) {
|
| 481 |
-
assert(ERROR_OCCURRED());
|
| 482 |
-
|
| 483 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
exception_lineno = 1;
|
| 487 |
-
|
| 488 |
-
goto frame_exception_exit_1;
|
| 489 |
-
}
|
| 490 |
-
tmp_args_element_name_1 = module_filename_obj;
|
| 491 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 492 |
-
tmp_list_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1);
|
| 493 |
-
Py_DECREF(tmp_called_name_1);
|
| 494 |
-
if (tmp_list_element_1 == NULL) {
|
| 495 |
-
assert(ERROR_OCCURRED());
|
| 496 |
-
|
| 497 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
exception_lineno = 1;
|
| 501 |
-
|
| 502 |
-
goto frame_exception_exit_1;
|
| 503 |
-
}
|
| 504 |
-
tmp_assign_source_3 = PyList_New(3);
|
| 505 |
-
{
|
| 506 |
-
PyObject *tmp_called_name_2;
|
| 507 |
-
PyObject *tmp_expression_name_2;
|
| 508 |
-
PyObject *tmp_args_element_name_2;
|
| 509 |
-
PyObject *tmp_called_instance_1;
|
| 510 |
-
PyObject *tmp_args_element_name_3;
|
| 511 |
-
PyObject *tmp_called_instance_2;
|
| 512 |
-
PyList_SET_ITEM(tmp_assign_source_3, 0, tmp_list_element_1);
|
| 513 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 514 |
-
{
|
| 515 |
-
PyObject *hard_module = IMPORT_HARD_OS();
|
| 516 |
-
tmp_expression_name_2 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[2]);
|
| 517 |
-
}
|
| 518 |
-
|
| 519 |
-
if (tmp_expression_name_2 == NULL) {
|
| 520 |
-
assert(ERROR_OCCURRED());
|
| 521 |
-
|
| 522 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
exception_lineno = 1;
|
| 526 |
-
|
| 527 |
-
goto list_build_exception_1;
|
| 528 |
-
}
|
| 529 |
-
tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[4]);
|
| 530 |
-
if (tmp_called_name_2 == NULL) {
|
| 531 |
-
assert(ERROR_OCCURRED());
|
| 532 |
-
|
| 533 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
exception_lineno = 1;
|
| 537 |
-
|
| 538 |
-
goto list_build_exception_1;
|
| 539 |
-
}
|
| 540 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 541 |
-
{
|
| 542 |
-
PyObject *hard_module = IMPORT_HARD_OS();
|
| 543 |
-
tmp_called_instance_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[5]);
|
| 544 |
-
}
|
| 545 |
-
|
| 546 |
-
if (tmp_called_instance_1 == NULL) {
|
| 547 |
-
assert(ERROR_OCCURRED());
|
| 548 |
-
|
| 549 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 550 |
-
Py_DECREF(tmp_called_name_2);
|
| 551 |
-
|
| 552 |
-
exception_lineno = 1;
|
| 553 |
-
|
| 554 |
-
goto list_build_exception_1;
|
| 555 |
-
}
|
| 556 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 557 |
-
tmp_args_element_name_2 = CALL_METHOD_WITH_ARGS2(
|
| 558 |
-
tmp_called_instance_1,
|
| 559 |
-
mod_consts[6],
|
| 560 |
-
&PyTuple_GET_ITEM(mod_consts[7], 0)
|
| 561 |
-
);
|
| 562 |
-
|
| 563 |
-
if (tmp_args_element_name_2 == NULL) {
|
| 564 |
-
assert(ERROR_OCCURRED());
|
| 565 |
-
|
| 566 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 567 |
-
Py_DECREF(tmp_called_name_2);
|
| 568 |
-
|
| 569 |
-
exception_lineno = 1;
|
| 570 |
-
|
| 571 |
-
goto list_build_exception_1;
|
| 572 |
-
}
|
| 573 |
-
tmp_args_element_name_3 = mod_consts[8];
|
| 574 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 575 |
-
{
|
| 576 |
-
PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3};
|
| 577 |
-
tmp_list_element_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args);
|
| 578 |
-
}
|
| 579 |
-
|
| 580 |
-
Py_DECREF(tmp_called_name_2);
|
| 581 |
-
Py_DECREF(tmp_args_element_name_2);
|
| 582 |
-
if (tmp_list_element_1 == NULL) {
|
| 583 |
-
assert(ERROR_OCCURRED());
|
| 584 |
-
|
| 585 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
exception_lineno = 1;
|
| 589 |
-
|
| 590 |
-
goto list_build_exception_1;
|
| 591 |
-
}
|
| 592 |
-
PyList_SET_ITEM(tmp_assign_source_3, 1, tmp_list_element_1);
|
| 593 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 594 |
-
{
|
| 595 |
-
PyObject *hard_module = IMPORT_HARD_OS();
|
| 596 |
-
tmp_called_instance_2 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[5]);
|
| 597 |
-
}
|
| 598 |
-
|
| 599 |
-
if (tmp_called_instance_2 == NULL) {
|
| 600 |
-
assert(ERROR_OCCURRED());
|
| 601 |
-
|
| 602 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
exception_lineno = 1;
|
| 606 |
-
|
| 607 |
-
goto list_build_exception_1;
|
| 608 |
-
}
|
| 609 |
-
frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1;
|
| 610 |
-
tmp_list_element_1 = CALL_METHOD_WITH_ARGS2(
|
| 611 |
-
tmp_called_instance_2,
|
| 612 |
-
mod_consts[6],
|
| 613 |
-
&PyTuple_GET_ITEM(mod_consts[9], 0)
|
| 614 |
-
);
|
| 615 |
-
|
| 616 |
-
if (tmp_list_element_1 == NULL) {
|
| 617 |
-
assert(ERROR_OCCURRED());
|
| 618 |
-
|
| 619 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
exception_lineno = 1;
|
| 623 |
-
|
| 624 |
-
goto list_build_exception_1;
|
| 625 |
-
}
|
| 626 |
-
PyList_SET_ITEM(tmp_assign_source_3, 2, tmp_list_element_1);
|
| 627 |
-
}
|
| 628 |
-
goto list_build_noexception_1;
|
| 629 |
-
// Exception handling pass through code for list_build:
|
| 630 |
-
list_build_exception_1:;
|
| 631 |
-
Py_DECREF(tmp_assign_source_3);
|
| 632 |
-
goto frame_exception_exit_1;
|
| 633 |
-
// Finished with no exception for list_build:
|
| 634 |
-
list_build_noexception_1:;
|
| 635 |
-
UPDATE_STRING_DICT1(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_3);
|
| 636 |
-
}
|
| 637 |
-
{
|
| 638 |
-
PyObject *tmp_expression_name_3;
|
| 639 |
-
PyObject *tmp_subscript_name_1;
|
| 640 |
-
tmp_dictset_value = Nuitka_Loader_New(module_entry);
|
| 641 |
-
tmp_dictset_dict = PySys_GetObject((char *)"path_importer_cache");
|
| 642 |
-
if (tmp_dictset_dict == NULL) {
|
| 643 |
-
assert(ERROR_OCCURRED());
|
| 644 |
-
|
| 645 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
exception_lineno = 1;
|
| 649 |
-
|
| 650 |
-
goto frame_exception_exit_1;
|
| 651 |
-
}
|
| 652 |
-
tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10]);
|
| 653 |
-
|
| 654 |
-
if (unlikely(tmp_expression_name_3 == NULL)) {
|
| 655 |
-
tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]);
|
| 656 |
-
}
|
| 657 |
-
|
| 658 |
-
assert(!(tmp_expression_name_3 == NULL));
|
| 659 |
-
tmp_subscript_name_1 = mod_consts[11];
|
| 660 |
-
tmp_dictset_key = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_1, 0);
|
| 661 |
-
if (tmp_dictset_key == NULL) {
|
| 662 |
-
assert(ERROR_OCCURRED());
|
| 663 |
-
|
| 664 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
exception_lineno = 1;
|
| 668 |
-
|
| 669 |
-
goto frame_exception_exit_1;
|
| 670 |
-
}
|
| 671 |
-
tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value);
|
| 672 |
-
Py_DECREF(tmp_dictset_key);
|
| 673 |
-
if (tmp_res != 0) {
|
| 674 |
-
assert(ERROR_OCCURRED());
|
| 675 |
-
|
| 676 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
exception_lineno = 1;
|
| 680 |
-
|
| 681 |
-
goto frame_exception_exit_1;
|
| 682 |
-
}
|
| 683 |
-
}
|
| 684 |
-
{
|
| 685 |
-
PyObject *tmp_assattr_name_1;
|
| 686 |
-
PyObject *tmp_assattr_target_1;
|
| 687 |
-
tmp_assattr_name_1 = module_filename_obj;
|
| 688 |
-
tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]);
|
| 689 |
-
|
| 690 |
-
if (unlikely(tmp_assattr_target_1 == NULL)) {
|
| 691 |
-
tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]);
|
| 692 |
-
}
|
| 693 |
-
|
| 694 |
-
assert(!(tmp_assattr_target_1 == NULL));
|
| 695 |
-
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[13], tmp_assattr_name_1);
|
| 696 |
-
if (tmp_result == false) {
|
| 697 |
-
assert(ERROR_OCCURRED());
|
| 698 |
-
|
| 699 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
exception_lineno = 1;
|
| 703 |
-
|
| 704 |
-
goto frame_exception_exit_1;
|
| 705 |
-
}
|
| 706 |
-
}
|
| 707 |
-
{
|
| 708 |
-
PyObject *tmp_assattr_name_2;
|
| 709 |
-
PyObject *tmp_assattr_target_2;
|
| 710 |
-
tmp_assattr_name_2 = Py_True;
|
| 711 |
-
tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]);
|
| 712 |
-
|
| 713 |
-
if (unlikely(tmp_assattr_target_2 == NULL)) {
|
| 714 |
-
tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]);
|
| 715 |
-
}
|
| 716 |
-
|
| 717 |
-
assert(!(tmp_assattr_target_2 == NULL));
|
| 718 |
-
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[14], tmp_assattr_name_2);
|
| 719 |
-
if (tmp_result == false) {
|
| 720 |
-
assert(ERROR_OCCURRED());
|
| 721 |
-
|
| 722 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
exception_lineno = 1;
|
| 726 |
-
|
| 727 |
-
goto frame_exception_exit_1;
|
| 728 |
-
}
|
| 729 |
-
}
|
| 730 |
-
{
|
| 731 |
-
PyObject *tmp_assattr_name_3;
|
| 732 |
-
PyObject *tmp_assattr_target_3;
|
| 733 |
-
tmp_assattr_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10]);
|
| 734 |
-
|
| 735 |
-
if (unlikely(tmp_assattr_name_3 == NULL)) {
|
| 736 |
-
tmp_assattr_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]);
|
| 737 |
-
}
|
| 738 |
-
|
| 739 |
-
if (tmp_assattr_name_3 == NULL) {
|
| 740 |
-
assert(ERROR_OCCURRED());
|
| 741 |
-
|
| 742 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
exception_lineno = 1;
|
| 746 |
-
|
| 747 |
-
goto frame_exception_exit_1;
|
| 748 |
-
}
|
| 749 |
-
tmp_assattr_target_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]);
|
| 750 |
-
|
| 751 |
-
if (unlikely(tmp_assattr_target_3 == NULL)) {
|
| 752 |
-
tmp_assattr_target_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]);
|
| 753 |
-
}
|
| 754 |
-
|
| 755 |
-
assert(!(tmp_assattr_target_3 == NULL));
|
| 756 |
-
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[15], tmp_assattr_name_3);
|
| 757 |
-
if (tmp_result == false) {
|
| 758 |
-
assert(ERROR_OCCURRED());
|
| 759 |
-
|
| 760 |
-
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
exception_lineno = 1;
|
| 764 |
-
|
| 765 |
-
goto frame_exception_exit_1;
|
| 766 |
-
}
|
| 767 |
-
}
|
| 768 |
-
|
| 769 |
-
// Restore frame exception if necessary.
|
| 770 |
-
#if 0
|
| 771 |
-
RESTORE_FRAME_EXCEPTION(frame_5e387c7afb8f5b1764470a49d9353be7);
|
| 772 |
-
#endif
|
| 773 |
-
popFrameStack();
|
| 774 |
-
|
| 775 |
-
assertFrameObject(frame_5e387c7afb8f5b1764470a49d9353be7);
|
| 776 |
-
|
| 777 |
-
goto frame_no_exception_1;
|
| 778 |
-
|
| 779 |
-
frame_exception_exit_1:;
|
| 780 |
-
#if 0
|
| 781 |
-
RESTORE_FRAME_EXCEPTION(frame_5e387c7afb8f5b1764470a49d9353be7);
|
| 782 |
-
#endif
|
| 783 |
-
|
| 784 |
-
if (exception_tb == NULL) {
|
| 785 |
-
exception_tb = MAKE_TRACEBACK(frame_5e387c7afb8f5b1764470a49d9353be7, exception_lineno);
|
| 786 |
-
} else if (exception_tb->tb_frame != &frame_5e387c7afb8f5b1764470a49d9353be7->m_frame) {
|
| 787 |
-
exception_tb = ADD_TRACEBACK(exception_tb, frame_5e387c7afb8f5b1764470a49d9353be7, exception_lineno);
|
| 788 |
-
}
|
| 789 |
-
|
| 790 |
-
// Put the previous frame back on top.
|
| 791 |
-
popFrameStack();
|
| 792 |
-
|
| 793 |
-
// Return the error.
|
| 794 |
-
goto module_exception_exit;
|
| 795 |
-
|
| 796 |
-
frame_no_exception_1:;
|
| 797 |
-
{
|
| 798 |
-
PyObject *tmp_assign_source_4;
|
| 799 |
-
tmp_assign_source_4 = Py_None;
|
| 800 |
-
UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[16], tmp_assign_source_4);
|
| 801 |
-
}
|
| 802 |
-
|
| 803 |
-
return module_models$unet3d;
|
| 804 |
-
module_exception_exit:
|
| 805 |
-
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
|
| 806 |
-
return NULL;
|
| 807 |
-
}
|
| 808 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ELETED
|
Binary file (7.37 kB)
|
|
|
medomni/models.build/module.models.unet3d.losses.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.unet3d.metrics.const
DELETED
|
Binary file (10.9 kB)
|
|
|
medomni/models.build/module.models.unet3d.metrics.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.unet3d.model.const
DELETED
|
Binary file (5.8 kB)
|
|
|
medomni/models.build/module.models.unet3d.model.cpp
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
medomni/models.build/module.models.unet3d.predictor.const
DELETED
|
Binary file (7.39 kB)
|
|
|