gru_ode_bayes icon indicating copy to clipboard operation
gru_ode_bayes copied to clipboard

Tensors used as indices must be long, byte or bool tensors

Open zzrrc opened this issue 4 years ago • 1 comments

When running climate.gruode.py, the error occurs. p_obs = p[i_obs] IndexError: tensors used as indices must be long, byte or bool tensors

How to solve this problem?

zzrrc avatar Jun 07 '20 13:06 zzrrc

i_obs = i_obs.to(torch.long)

chooron avatar May 10 '22 08:05 chooron