Thanks, for this hint. I removed this line and restarted my experiments. After some time I got this error then:
AssertionError: Key not found in unpickled KeyData file. Verify the __eq__ and __hash__ functions of your Ops. The file is: X/X/X,key.pkl. the key is (((14, (3, (4,), (4,), (4,), (4,), (4,), (4,)), (13, '1.25.2'), (13, '1.25.2'), (13, '1.25.2'), (13, '1.25.2'), (13, '1.25.2'), (13, '1.25.2'), (13, '1.25.2'), ('openmp', False), ('openmp_elemwise_minsize', 200000)), ('scalar_op', 'inplace_pattern'), (11, 13, '1.25.2'), (11, 13, '1.25.2'), (11, 13, '1.25.2'), (11, 13, '1.25.2'), (11, 13, '1.25.2'), (11, 13, '1.25.2'), (11, 13, '1.25.2')), ('CLinker.cmodule_key', ('--param', '--param', '--param', '-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION', '-O3', '-Wno-c++11-narrowing', '-Wno-unused-label', '-Wno-unused-variable', '-Wno-write-strings', '-fPIC', '-fno-asynchronous-unwind-tables', '-fno-exceptions', '-fno-math-errno', '-fno-unwind-tables', '-m64', '-mabm', '-madx', '-maes', '-march=cascadelake', '-mavx', '-mavx2', '-mavx512bw', '-mavx512cd', '-mavx512dq', '-mavx512f', '-mavx512vl', '-mavx512vnni', '-mbmi', '-mbmi2', '-mclflushopt', '-mclwb', '-mcx16', '-mf16c', '-mfma', '-mfsgsbase', '-mfxsr', '-mlzcnt', '-mmmx', '-mmovbe', '-mno-3dnow', '-mno-avx5124fmaps', '-mno-avx5124vnniw', '-mno-avx512bitalg', '-mno-avx512er', '-mno-avx512ifma', '-mno-avx512pf', '-mno-avx512vbmi', '-mno-avx512vbmi2', '-mno-avx512vpopcntdq', '-mno-cldemote', '-mno-clzero', '-mno-fma4', '-mno-gfni', '-mno-hle', '-mno-lwp', '-mno-movdir64b', '-mno-movdiri', '-mno-mwaitx', '-mno-pconfig', '-mno-prefetchwt1', '-mno-ptwrite', '-mno-rdpid', '-mno-rtm', '-mno-sgx', '-mno-sha', '-mno-shstk', '-mno-sse4a', '-mno-tbm', '-mno-vaes', '-mno-vpclmulqdq', '-mno-waitpkg', '-mno-wbnoinvd', '-mno-xop', '-mpclmul', '-mpku', '-mpopcnt', '-mprfchw', '-mrdrnd', '-mrdseed', '-msahf', '-msse', '-msse2', '-msse3', '-msse4.1', '-msse4.2', '-mssse3', '-mtune=cascadelake', '-mxsave', '-mxsavec', '-mxsaveopt', '-mxsaves', 'l1-cache-line-size=64', 'l1-cache-size=32', 'l2-cache-size=25344'), (), (), 'NPY_ABI_VERSION=0x1000009', 'c_compiler_str=/usr/bin/g++ 9', 'md5:m624562459f98c9fea8456c836a7c615e5d233a9e9905eebffeb353cd3b5f9076', (Elemwise(scalar_op=Composite{(((i3 * sqr(((i0 - i1) / i2))) - i4) - i5)},inplace_pattern=<frozendict {}>), ((TensorType(float64, shape=(30, 1)), (('med46277cfc94a2022d5c10b4ff11cc968ce1252bcef9ba480754734791ba582c', 0, 0), False)), (TensorType(float64, shape=(1, 30)), ((-1, 1), False)), (TensorType(float64, shape=(30, 1)), (('m34bdfbdba23987b235e706b6a0d15a73b0cab262dde51906583f1ad63fdcebd5', 0, 2), False)), (TensorType(float64, shape=(1, 1)), (('ma7ad8e0919c1e90250fff6895a17ab491413127adac0196cbaf0f9e3a7c1985c', 0, 3), False)), (TensorType(float64, shape=(1, 1)), (('m28ae71fd0172e8a6a2a4845226c2f780c7a9b481b6e15913a64c50e2674aab0c', 0, 4), False)), (TensorType(float64, shape=(30, 1)), (('md1a718550ff84b74c2321bb05c48df6dec3cae066766722cba912b5bf2b83e0c', 0, 5), False))), (1, (False,)))))
Apply node that caused the error: Composite{(((i3 * sqr(((i0 - i1) / i2))) - i4) - i5)}(y_obs{[[0.687196 ... 66658728]]}, Add.0, [[0.1]
[0 ... 1]
[0.1]], [[-0.5]], [[0.91893853]], [[-2.30258 ... 30258507]])
Toposort index: 9
Inputs types: [TensorType(float64, shape=(30, 1)), TensorType(float64, shape=(1, 30)), TensorType(float64, shape=(30, 1)), TensorType(float64, shape=(1, 1)), TensorType(float64, shape=(1, 1)), TensorType(float64, shape=(30, 1))]
HINT: Use a linker other than the C linker to print the inputs' shapes and strides.
HINT: Re-running with most PyTensor optimizations disabled could provide a back-trace showing when this node was created. This can be done by setting the PyTensor flag 'optimizer=fast_compile'. If that does not work, PyTensor optimizations can be disabled with 'optimizer=None'.
HINT: Use the PyTensor flag `exception_verbosity=high` for a debug print-out and storage map footprint of this Apply node.
I am not sure what this means.
Best