tensorflow / tensorflow/probability

Error in Bayesian Modeling with Joint Distribution example.

Open
#1,144 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi, I am new to tfp and I was going through the Bayesian Modeling with Joint Distribution tutorial using the collab. There is an error while running the Hierarchical Partial pooling part, the error is as follows,

InvalidArgumentError: Automatic shape inference not supported: f64[4] and f64[18,4]

I guess this error is due to some sort of broadcasting issue while running for multiple chains but I am not able to figure out how to fix this. Any help here would be really appreciated, many people might face the same issue as this is an example.

Thanks,
Prateek

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Hierarchical Partial pooling section in tensorflow_probability/examples/jupyter_notebooks/Modeling_with_JointDistribution.ipynb and run the linked Colab example to reproduce the reported shape-inference error. Compare the notebook and tutorial around the multiple-chain execution; done means the example runs without the InvalidArgumentError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.