Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtype errors on using the model if keras backend is not set to float64 #76

Closed
hstojic opened this issue Jul 19, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@hstojic
Copy link
Collaborator

hstojic commented Jul 19, 2022

Default dtype for keras is float32 while gpflow uses float64, so if one tries to use the model without setting the keras backend to float64 dtype clash will occur and exception is raised,

The problem with setting the backend occurs when multiple models with both float32 and 64 are used in a library, as its a global setting. The fix seems to be easy, fixing lines 99 and 100 by setting the dtype to tf.float64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant