Gaussian Process example in tensorflow website is giving error?

The Gaussian process regression example (Gaussian Process Regression in TensorFlow Probability) is giving following error

ValueError: No gradients provided for any variable: ['amplitude:0', 'length_scale:0', 'observation_noise_variance_var:0'].

This error goes away when I comment out the tf.function decorator.
I am using tensorflow 2.5.0.
What is the cause of the error?

1 Like

Thanks for pointing that out @tonygrey

I filled a bug on that and I’ll keep you posted!

There was already a ticket:

1 Like

I suppose that the main problem is that this and other notebooks are not under CI testing in the TFP repo.

Apparently this is fixed.
maybe it was something with libraries versioning