tensorflow / tensorflow/probability
Sampling from TruncatedNormal can yield NaN
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Example:
from tensorflow_probability.substrates import jax as tfp
tfp.distributions.TruncatedNormal(
0.5382424, 0.05, 0.80921564, 0.86921564
).sample(seed=jax.random.PRNGKey(2))
returns NaN.
JAX version: 0.4.33. TFP version: 0.23.0.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided tensorflow_probability.substrates.jax TruncatedNormal sample with JAX 0.4.33 and TFP 0.23.0, focusing on the TruncatedNormal.sample entry point. The work is done when this case no longer returns NaN and a regression check covers the reported parameters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100