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

Raise messages if type mismatch when building inference or criticism #560

Closed
dustinvtran opened this issue Mar 19, 2017 · 0 comments
Closed

Comments

@dustinvtran
Copy link
Member

dustinvtran commented Mar 19, 2017

Motivated by https://discourse.edwardlib.org/t/poisson-gamma-regression/47.

We can raise an error message, e.g., if a random variable has type float32 but the data passed in has type int32.

We should also do this if there's a difference in floating point precision (for tf.Tensors). For NumPy arrays, we don't need to raise any message and can continue casting under the hood; this is the convention TensorFlow takes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant