Hi. This is a Jupyter notebook. I ran it in a clean environment just like you indicated before evenstarting to post. I put it on GitHub.
If you want me to try to simplify I can, but it seems pretty bare bones given the model. I can at least get id of the text.
Summary
You can find the C code in this temporary file: C:\Users\OPHERL~1\AppData\Local\Temp\aesara_compilation_error_yczza5av
library mkl_rt is not found.
---------------------------------------------------------------------------
CompileError Traceback (most recent call last)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\vm.py:1246, in VMLinker.make_all(self, profiler, input_storage, output_storage, storage_map)
1242 # no-recycling is done at each VM.__call__ So there is
1243 # no need to cause duplicate c code by passing
1244 # no_recycling here.
1245 thunks.append(
-> 1246 node.op.make_thunk(node, storage_map, compute_map, [], impl=impl)
1247 )
1248 linker_make_thunk_time[node] = time.time() - thunk_start
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\op.py:131, in COp.make_thunk(self, node, storage_map, compute_map, no_recycling, impl)
130 try:
--> 131 return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
132 except (NotImplementedError, MethodNotDefined):
133 # We requested the c code, so don't catch the error.
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\op.py:96, in COp.make_c_thunk(self, node, storage_map, compute_map, no_recycling)
95 raise NotImplementedError("float16")
---> 96 outputs = cl.make_thunk(
97 input_storage=node_input_storage, output_storage=node_output_storage
98 )
99 thunk, node_input_filters, node_output_filters = outputs
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1202, in CLinker.make_thunk(self, input_storage, output_storage, storage_map, cache, **kwargs)
1201 init_tasks, tasks = self.get_init_tasks()
-> 1202 cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
1203 input_storage, output_storage, storage_map, cache
1204 )
1206 res = _CThunk(cthunk, init_tasks, tasks, error_storage, module)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1122, in CLinker.__compile__(self, input_storage, output_storage, storage_map, cache)
1121 output_storage = tuple(output_storage)
-> 1122 thunk, module = self.cthunk_factory(
1123 error_storage,
1124 input_storage,
1125 output_storage,
1126 storage_map,
1127 cache,
1128 )
1129 return (
1130 thunk,
1131 module,
(...)
1140 error_storage,
1141 )
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1647, in CLinker.cthunk_factory(self, error_storage, in_storage, out_storage, storage_map, cache)
1646 cache = get_module_cache()
-> 1647 module = cache.module_from_key(key=key, lnk=self)
1649 vars = self.inputs + self.outputs + self.orphans
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\cmodule.py:1229, in ModuleCache.module_from_key(self, key, lnk)
1228 location = dlimport_workdir(self.dirname)
-> 1229 module = lnk.compile_cmodule(location)
1230 name = module.__file__
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1546, in CLinker.compile_cmodule(self, location)
1545 _logger.debug(f"LOCATION {location}")
-> 1546 module = c_compiler.compile_str(
1547 module_name=mod.code_hash,
1548 src_code=src_code,
1549 location=location,
1550 include_dirs=self.header_dirs(),
1551 lib_dirs=self.lib_dirs(),
1552 libs=libs,
1553 preargs=preargs,
1554 )
1555 except Exception as e:
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\cmodule.py:2640, in GCC_compiler.compile_str(module_name, src_code, location, include_dirs, lib_dirs, libs, preargs, py_module, hide_symbols)
2636 # We replace '\n' by '. ' in the error message because when Python
2637 # prints the exception, having '\n' in the text makes it more
2638 # difficult to read.
2639 # compile_stderr = compile_stderr.replace("\n", ". ")
-> 2640 raise CompileError(
2641 f"Compilation failed (return status={status}):\n{' '.join(cmd)}\n{compile_stderr}"
2642 )
2643 elif config.cmodule__compilation_warning and compile_stderr:
2644 # Print errors just below the command line.
CompileError: Compilation failed (return status=1):
"C:\miniconda3\envs\pymc_env\Library\mingw-w64\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -march=broadwell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=generic -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"c:\miniconda3\envs\pymc_env\lib\site-packages\numpy\core\include" -I"c:\miniconda3\envs\pymc_env\include" -I"c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\c_code" -L"c:\miniconda3\envs\pymc_env\libs" -L"c:\miniconda3\envs\pymc_env" -o "C:\Users\Opher local\AppData\Local\Aesara\compiledir_Windows-10-10.0.19043-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.10.4-64\tmpwrt192ya\mebd8dae10522ca0870e1a82f1ea908002d7232440c31ecf6eadb09903ee4931b.pyd" "C:\Users\Opher local\AppData\Local\Aesara\compiledir_Windows-10-10.0.19043-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.10.4-64\tmpwrt192ya\mod.cpp" -lmkl_rt "c:\miniconda3\envs\pymc_env\python310.dll"
C:/miniconda3/envs/pymc_env/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmkl_rt
collect2.exe: error: ld returned 1 exit status
During handling of the above exception, another exception occurred:
CompileError Traceback (most recent call last)
c:\Opher\GitHub\bsf_donchin_jordan_2022\identify_processes.ipynb Cell 28 in <cell line: 3>()
1 # import aesara
2 # aesara.config.blas__ldflags=''
3 with model:
----> 4 fit = pm.sample()
5 az.to_netcdf(fit, 'model_samples.ncdf')
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\sampling.py:530, in sample(draws, step, init, n_init, initvals, trace, chain_idx, chains, cores, tune, progressbar, model, random_seed, discard_tuned_samples, compute_convergence_checks, callback, jitter_max_retries, return_inferencedata, idata_kwargs, mp_ctx, **kwargs)
527 auto_nuts_init = False
529 initial_points = None
--> 530 step = assign_step_methods(model, step, methods=pm.STEP_METHODS, step_kwargs=kwargs)
532 if isinstance(step, list):
533 step = CompoundStep(step)
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\sampling.py:228, in assign_step_methods(model, step, methods, step_kwargs)
220 selected = max(
221 methods,
222 key=lambda method, var=rv_var, has_gradient=has_gradient: method._competence(
223 var, has_gradient
224 ),
225 )
226 selected_steps[selected].append(var)
--> 228 return instantiate_steppers(model, steps, selected_steps, step_kwargs)
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\sampling.py:146, in instantiate_steppers(model, steps, selected_steps, step_kwargs)
144 args = step_kwargs.get(step_class.name, {})
145 used_keys.add(step_class.name)
--> 146 step = step_class(vars=vars, model=model, **args)
147 steps.append(step)
149 unused_args = set(step_kwargs).difference(used_keys)
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\step_methods\hmc\nuts.py:178, in NUTS.__init__(self, vars, max_treedepth, early_max_treedepth, **kwargs)
120 def __init__(self, vars=None, max_treedepth=10, early_max_treedepth=8, **kwargs):
121 r"""Set up the No-U-Turn sampler.
122
123 Parameters
(...)
176 `pm.sample` to the desired number of tuning steps.
177 """
--> 178 super().__init__(vars, **kwargs)
180 self.max_treedepth = max_treedepth
181 self.early_max_treedepth = early_max_treedepth
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\step_methods\hmc\base_hmc.py:95, in BaseHMC.__init__(self, vars, scaling, step_scale, is_cov, model, blocked, potential, dtype, Emax, target_accept, gamma, k, t0, adapt_step_size, step_rand, **aesara_kwargs)
92 else:
93 vars = [self._model.rvs_to_values.get(var, var) for var in vars]
---> 95 super().__init__(vars, blocked=blocked, model=self._model, dtype=dtype, **aesara_kwargs)
97 self.adapt_step_size = adapt_step_size
98 self.Emax = Emax
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\step_methods\arraystep.py:276, in GradientSharedStep.__init__(self, vars, model, blocked, dtype, logp_dlogp_func, **aesara_kwargs)
273 model = modelcontext(model)
275 if logp_dlogp_func is None:
--> 276 func = model.logp_dlogp_function(vars, dtype=dtype, **aesara_kwargs)
277 else:
278 func = logp_dlogp_func
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\model.py:642, in Model.logp_dlogp_function(self, grad_vars, tempered, **kwargs)
638 ip = self.initial_point(0)
639 extra_vars_and_values = {
640 var: ip[var.name] for var in extra_vars if var in input_vars and var not in grad_vars
641 }
--> 642 return ValueGradFunction(costs, grad_vars, extra_vars_and_values, **kwargs)
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\model.py:382, in ValueGradFunction.__init__(self, costs, grad_vars, extra_vars_and_values, dtype, casting, compute_grads, **kwargs)
378 outputs = [cost]
380 inputs = grad_vars
--> 382 self._aesara_function = compile_pymc(inputs, outputs, givens=givens, **kwargs)
File c:\miniconda3\envs\pymc_env\lib\site-packages\pymc\aesaraf.py:965, in compile_pymc(inputs, outputs, random_seed, mode, **kwargs)
963 opt_qry = mode.provided_optimizer.including("random_make_inplace", check_parameter_opt)
964 mode = Mode(linker=mode.linker, optimizer=opt_qry)
--> 965 aesara_function = aesara.function(
966 inputs,
967 outputs,
968 updates={**rng_updates, **kwargs.pop("updates", {})},
969 mode=mode,
970 **kwargs,
971 )
972 return aesara_function
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\compile\function\__init__.py:317, in function(inputs, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input)
311 fn = orig_function(
312 inputs, outputs, mode=mode, accept_inplace=accept_inplace, name=name
313 )
314 else:
315 # note: pfunc will also call orig_function -- orig_function is
316 # a choke point that all compilation must pass through
--> 317 fn = pfunc(
318 params=inputs,
319 outputs=outputs,
320 mode=mode,
321 updates=updates,
322 givens=givens,
323 no_default_updates=no_default_updates,
324 accept_inplace=accept_inplace,
325 name=name,
326 rebuild_strict=rebuild_strict,
327 allow_input_downcast=allow_input_downcast,
328 on_unused_input=on_unused_input,
329 profile=profile,
330 output_keys=output_keys,
331 )
332 return fn
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\compile\function\pfunc.py:374, in pfunc(params, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input, output_keys, fgraph)
360 profile = ProfileStats(message=profile)
362 inputs, cloned_outputs = construct_pfunc_ins_and_outs(
363 params,
364 outputs,
(...)
371 fgraph=fgraph,
372 )
--> 374 return orig_function(
375 inputs,
376 cloned_outputs,
377 mode,
378 accept_inplace=accept_inplace,
379 name=name,
380 profile=profile,
381 on_unused_input=on_unused_input,
382 output_keys=output_keys,
383 fgraph=fgraph,
384 )
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\compile\function\types.py:1759, in orig_function(inputs, outputs, mode, accept_inplace, name, profile, on_unused_input, output_keys, fgraph)
1747 m = Maker(
1748 inputs,
1749 outputs,
(...)
1756 fgraph=fgraph,
1757 )
1758 with config.change_flags(compute_test_value="off"):
-> 1759 fn = m.create(defaults)
1760 finally:
1761 t2 = time.time()
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\compile\function\types.py:1652, in FunctionMaker.create(self, input_storage, trustme, storage_map)
1649 start_import_time = aesara.link.c.cmodule.import_time
1651 with config.change_flags(traceback__limit=config.traceback__compile_limit):
-> 1652 _fn, _i, _o = self.linker.make_thunk(
1653 input_storage=input_storage_lists, storage_map=storage_map
1654 )
1656 end_linker = time.time()
1658 linker_time = end_linker - start_linker
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\basic.py:254, in LocalLinker.make_thunk(self, input_storage, output_storage, storage_map, **kwargs)
247 def make_thunk(
248 self,
249 input_storage: Optional["InputStorageType"] = None,
(...)
252 **kwargs,
253 ) -> Tuple["BasicThunkType", "InputStorageType", "OutputStorageType"]:
--> 254 return self.make_all(
255 input_storage=input_storage,
256 output_storage=output_storage,
257 storage_map=storage_map,
258 )[:3]
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\vm.py:1255, in VMLinker.make_all(self, profiler, input_storage, output_storage, storage_map)
1253 thunks[-1].lazy = False
1254 except Exception:
-> 1255 raise_with_op(fgraph, node)
1257 t1 = time.time()
1259 if self.profile:
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\utils.py:534, in raise_with_op(fgraph, node, thunk, exc_info, storage_map)
529 warnings.warn(
530 f"{exc_type} error does not allow us to add an extra error message"
531 )
532 # Some exception need extra parameter in inputs. So forget the
533 # extra long error message in that case.
--> 534 raise exc_value.with_traceback(exc_trace)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\vm.py:1246, in VMLinker.make_all(self, profiler, input_storage, output_storage, storage_map)
1241 thunk_start = time.time()
1242 # no-recycling is done at each VM.__call__ So there is
1243 # no need to cause duplicate c code by passing
1244 # no_recycling here.
1245 thunks.append(
-> 1246 node.op.make_thunk(node, storage_map, compute_map, [], impl=impl)
1247 )
1248 linker_make_thunk_time[node] = time.time() - thunk_start
1249 if not hasattr(thunks[-1], "lazy"):
1250 # We don't want all ops maker to think about lazy Ops.
1251 # So if they didn't specify that its lazy or not, it isn't.
1252 # If this member isn't present, it will crash later.
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\op.py:131, in COp.make_thunk(self, node, storage_map, compute_map, no_recycling, impl)
127 self.prepare_node(
128 node, storage_map=storage_map, compute_map=compute_map, impl="c"
129 )
130 try:
--> 131 return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
132 except (NotImplementedError, MethodNotDefined):
133 # We requested the c code, so don't catch the error.
134 if impl == "c":
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\op.py:96, in COp.make_c_thunk(self, node, storage_map, compute_map, no_recycling)
94 print(f"Disabling C code for {self} due to unsupported float16")
95 raise NotImplementedError("float16")
---> 96 outputs = cl.make_thunk(
97 input_storage=node_input_storage, output_storage=node_output_storage
98 )
99 thunk, node_input_filters, node_output_filters = outputs
101 @is_cthunk_wrapper_type
102 def rval():
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1202, in CLinker.make_thunk(self, input_storage, output_storage, storage_map, cache, **kwargs)
1167 """Compile this linker's `self.fgraph` and return a function that performs the computations.
1168
1169 The return values can be used as follows:
(...)
1199
1200 """
1201 init_tasks, tasks = self.get_init_tasks()
-> 1202 cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
1203 input_storage, output_storage, storage_map, cache
1204 )
1206 res = _CThunk(cthunk, init_tasks, tasks, error_storage, module)
1207 res.nodes = self.node_order
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1122, in CLinker.__compile__(self, input_storage, output_storage, storage_map, cache)
1120 input_storage = tuple(input_storage)
1121 output_storage = tuple(output_storage)
-> 1122 thunk, module = self.cthunk_factory(
1123 error_storage,
1124 input_storage,
1125 output_storage,
1126 storage_map,
1127 cache,
1128 )
1129 return (
1130 thunk,
1131 module,
(...)
1140 error_storage,
1141 )
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1647, in CLinker.cthunk_factory(self, error_storage, in_storage, out_storage, storage_map, cache)
1645 if cache is None:
1646 cache = get_module_cache()
-> 1647 module = cache.module_from_key(key=key, lnk=self)
1649 vars = self.inputs + self.outputs + self.orphans
1650 # List of indices that should be ignored when passing the arguments
1651 # (basically, everything that the previous call to uniq eliminated)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\cmodule.py:1229, in ModuleCache.module_from_key(self, key, lnk)
1227 try:
1228 location = dlimport_workdir(self.dirname)
-> 1229 module = lnk.compile_cmodule(location)
1230 name = module.__file__
1231 assert name.startswith(location)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\basic.py:1546, in CLinker.compile_cmodule(self, location)
1544 try:
1545 _logger.debug(f"LOCATION {location}")
-> 1546 module = c_compiler.compile_str(
1547 module_name=mod.code_hash,
1548 src_code=src_code,
1549 location=location,
1550 include_dirs=self.header_dirs(),
1551 lib_dirs=self.lib_dirs(),
1552 libs=libs,
1553 preargs=preargs,
1554 )
1555 except Exception as e:
1556 e.args += (str(self.fgraph),)
File c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\cmodule.py:2640, in GCC_compiler.compile_str(module_name, src_code, location, include_dirs, lib_dirs, libs, preargs, py_module, hide_symbols)
2632 print(
2633 "Check if package python-dev or python-devel is installed."
2634 )
2636 # We replace '\n' by '. ' in the error message because when Python
2637 # prints the exception, having '\n' in the text makes it more
2638 # difficult to read.
2639 # compile_stderr = compile_stderr.replace("\n", ". ")
-> 2640 raise CompileError(
2641 f"Compilation failed (return status={status}):\n{' '.join(cmd)}\n{compile_stderr}"
2642 )
2643 elif config.cmodule__compilation_warning and compile_stderr:
2644 # Print errors just below the command line.
2645 print(compile_stderr)
CompileError: Compilation failed (return status=1):
"C:\miniconda3\envs\pymc_env\Library\mingw-w64\bin\g++.exe" -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -Wno-c++11-narrowing -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -march=broadwell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=generic -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"c:\miniconda3\envs\pymc_env\lib\site-packages\numpy\core\include" -I"c:\miniconda3\envs\pymc_env\include" -I"c:\miniconda3\envs\pymc_env\lib\site-packages\aesara\link\c\c_code" -L"c:\miniconda3\envs\pymc_env\libs" -L"c:\miniconda3\envs\pymc_env" -o "C:\Users\Opher local\AppData\Local\Aesara\compiledir_Windows-10-10.0.19043-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.10.4-64\tmpwrt192ya\mebd8dae10522ca0870e1a82f1ea908002d7232440c31ecf6eadb09903ee4931b.pyd" "C:\Users\Opher local\AppData\Local\Aesara\compiledir_Windows-10-10.0.19043-SP0-Intel64_Family_6_Model_142_Stepping_12_GenuineIntel-3.10.4-64\tmpwrt192ya\mod.cpp" -lmkl_rt "c:\miniconda3\envs\pymc_env\python310.dll"
C:/miniconda3/envs/pymc_env/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmkl_rt
collect2.exe: error: ld returned 1 exit status
Apply node that caused the error: Gemm{no_inplace}(obs_y{[[0.351112..57668185]]}, TensorConstant{-1.0}, x, beta, (d__logp/dsigma_y_log___logprob){1.0})
Toposort index: 7
Inputs types: [TensorType(float64, (420, 6)), TensorType(float64, ()), TensorType(float64, (None, None)), TensorType(float64, (None, None)), TensorType(float64, ())]
HINT: Use a linker other than the C linker to print the inputs' shapes and strides.
HINT: Re-running with most Aesara optimizations disabled could provide a back-trace showing when this node was created. This can be done by setting the Aesara flag 'optimizer=fast_compile'. If that does not work, Aesara optimizations can be disabled with 'optimizer=None'.
HINT: Use the Aesara flag `exception_verbosity=high` for a debug print-out and storage map footprint of this Apply node.