Svi.step() crash without any warning or error log

I am using svi.step() as loss and found the script stop at the first iteration.
I tried unwrap the svi.step() by defining a function _svi_step() and found the crash happened at
loss = loss.loss_and_grads(model, guide). And again, there is no warning or error log.
The loss is defined as pyro.infer.Trace_ELBO().
Do you have any idea what the issue would be?

Thank you.

Hi, could you please provide a runnable code snippet that reproduces your problem? Otherwise it’s hard to say what could be going wrong.

Hello~ I solved the issue. It’s a file path issue. Thank you.