Altought the function is returning same value, it can make a difference as it’s trying to take gradient of the function also. If some intermediate steps have inf I imagine it would give an error for NUTS (no error for theano necessary).
Altought the function is returning same value, it can make a difference as it’s trying to take gradient of the function also. If some intermediate steps have inf I imagine it would give an error for NUTS (no error for theano necessary).