You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -173,6 +182,15 @@ function _generate_python_script(
173
182
"\n",
174
183
)
175
184
185
+
arg_size_checks = [
186
+
"assert $(arg_names[i]).shape == $(reverse(info.shape)), f\"Expected shape of $(arg_names[i]) to be $(reverse(info.shape)). Got {$(arg_names[i]).shape} (path: $(info.path))\""
187
+
for (i, info) inenumerate(input_info)
188
+
]
189
+
arg_dtype_checks = [
190
+
"assert $(arg_names[i]).dtype == np.dtype('$(Serialization.NUMPY_SIMPLE_TYPES[info.dtype])'), f\"Expected dtype of $(arg_names[i]) to be $(Serialization.NUMPY_SIMPLE_TYPES[info.dtype]). Got {$(arg_names[i]).dtype} (path: $(info.path))\""
191
+
for (i, info) inenumerate(input_info)
192
+
]
193
+
176
194
load_inputs = ["npz_data['$(info.key)']"for info in input_info]
177
195
178
196
# Build the complete Python script
@@ -217,6 +235,8 @@ function _generate_python_script(
217
235
arrays from Julia, make sure to transpose them first using:
0 commit comments