Crashed occured in Vscode

with pm.Model() as model:
    eps_1 = pm.Uniform('eps_1', lower=3.0, upper=10.0, shape=1)
    eps_2 = pm.Uniform('eps_2', lower=3.0, upper=10.0, shape=1)
    eps = pt.concatenate([[2.0], eps_1, eps_2])
    simulated_data = simulator_op(eps, true_loss, true_thicknesses)
    pm.Normal('obs', mu=simulated_data, observed=observed_data)
    trace = pm.sample(2000, tune=1000, progressbar=True, return_inferencedata=True)

simulator_op is the instance of theOp class I defined that accepts three 1D vectors as input and returns a float type value. observed_data is the 1D vector of float-type values. However, the program crahsed in Vscode. Anyone can help me? Thanks in advance.

The kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

What does the jupyter log say? Does your code run outside of VSCode/jupyter? I would try that before attempting to debug further.

Thank you for the quick reply. I checked the log and found that the line eps = pt.concatenate([[2.0], eps_1, eps_2]) might cause the crash. It’s weird that a similar error didn’t crash ever before. Can you tell me how to correctly connect the three element into a tensor?

21:42:37.704 [warn] Cell completed with errors [nu [Error]: Only tensors with the same number of dimensions can be joined. Input ndims were: [2, 1, 1].

That looks like only part of the log. I see a warning (not an error) about nu, but I don’t see any nu parameters in your model nor any errors in what you showed from the log.