Problem: Apple silicon GPUs don't support FP64. So when running nps.predict on the GPU when using pytorch, there would be an error because dtype_lik was forced to be float64:
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Solution: I've added dtype_lik as an optional argument to nps.predict, very similar to how it is implemented in elbo and loglik
Hi Wessel!
Problem: Apple silicon GPUs don't support FP64. So when running nps.predict on the GPU when using pytorch, there would be an error because dtype_lik was forced to be float64:
Solution: I've added dtype_lik as an optional argument to nps.predict, very similar to how it is implemented in elbo and loglik