code-loader 1.0.131__tar.gz → 1.0.132__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of code-loader might be problematic. Click here for more details.
- {code_loader-1.0.131 → code_loader-1.0.132}/PKG-INFO +1 -1
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/inner_leap_binder/leapbinder_decorators.py +19 -1
- {code_loader-1.0.131 → code_loader-1.0.132}/pyproject.toml +1 -1
- {code_loader-1.0.131 → code_loader-1.0.132}/LICENSE +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/README.md +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/datasetclasses.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/enums.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/exceptions.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/mapping.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/responsedataclasses.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/contract/visualizer_classes.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/default_losses.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/default_metrics.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/api.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/cli_config_utils.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/client.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/epoch.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/experiment.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/experiment_context.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/types.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/utils.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/workingspace_config_utils.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/inner_leap_binder/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/inner_leap_binder/leapbinder.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/leaploader.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/leaploaderbase.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/mixpanel_tracker.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/plot_functions/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/plot_functions/plot_functions.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/plot_functions/visualize.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/utils.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/visualizers/__init__.py +0 -0
- {code_loader-1.0.131 → code_loader-1.0.132}/code_loader/visualizers/default_visualizers.py +0 -0
{code_loader-1.0.131 → code_loader-1.0.132}/code_loader/inner_leap_binder/leapbinder_decorators.py
RENAMED
|
@@ -92,6 +92,20 @@ def tensorleap_load_model(prediction_types: Optional[List[PredictionTypeHandler]
|
|
|
92
92
|
def _convert_onnx_inputs_to_correct_type(
|
|
93
93
|
self, float_arrays_inputs: Dict[str, np.ndarray]
|
|
94
94
|
) -> Dict[str, np.ndarray]:
|
|
95
|
+
ONNX_TYPE_TO_NP = {
|
|
96
|
+
"tensor(float)": np.float32,
|
|
97
|
+
"tensor(double)": np.float64,
|
|
98
|
+
"tensor(int64)": np.int64,
|
|
99
|
+
"tensor(int32)": np.int32,
|
|
100
|
+
"tensor(int16)": np.int16,
|
|
101
|
+
"tensor(int8)": np.int8,
|
|
102
|
+
"tensor(uint64)": np.uint64,
|
|
103
|
+
"tensor(uint32)": np.uint32,
|
|
104
|
+
"tensor(uint16)": np.uint16,
|
|
105
|
+
"tensor(uint8)": np.uint8,
|
|
106
|
+
"tensor(bool)": np.bool_,
|
|
107
|
+
}
|
|
108
|
+
|
|
95
109
|
"""
|
|
96
110
|
Cast user-provided NumPy inputs to match the dtypes/shapes
|
|
97
111
|
expected by an ONNX Runtime InferenceSession.
|
|
@@ -106,7 +120,11 @@ def tensorleap_load_model(prediction_types: Optional[List[PredictionTypeHandler]
|
|
|
106
120
|
continue
|
|
107
121
|
|
|
108
122
|
info = meta[name]
|
|
109
|
-
|
|
123
|
+
onnx_type = info.type
|
|
124
|
+
want_dtype = ONNX_TYPE_TO_NP.get(onnx_type)
|
|
125
|
+
|
|
126
|
+
if want_dtype is None:
|
|
127
|
+
raise TypeError(f"Unsupported ONNX input type: {onnx_type}")
|
|
110
128
|
|
|
111
129
|
# Cast dtype if needed
|
|
112
130
|
if arr.dtype != want_dtype:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/experiment_context.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_loader-1.0.131 → code_loader-1.0.132}/code_loader/experiment_api/workingspace_config_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|