Currently, with a TensorFlow backend, I believe all the array inputs to nps.loglik, nps.ar_loglik and nps.ar_sample need to be TensorFlow tensors, e.g. tf.EagerTensors. It would be convenient if users with numpy arrays did not have to explicitly cast all their data to TensorFlow before calling these methods. This dtype behaviour is supported with model.__call__ functionality in neuralprocesses so my hunch is that this shouldn't be too tricky...
cc @stratisMarkou
Currently, with a TensorFlow backend, I believe all the array inputs to
nps.loglik,nps.ar_loglikandnps.ar_sampleneed to be TensorFlow tensors, e.g.tf.EagerTensors. It would be convenient if users withnumpyarrays did not have to explicitly cast all their data to TensorFlow before calling these methods. This dtype behaviour is supported withmodel.__call__functionality inneuralprocessesso my hunch is that this shouldn't be too tricky...cc @stratisMarkou