question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jax.random.bernoulli has surprising broadcasting semantics

See original GitHub issue

For example, jax.lax.broadcast(np.arange(2.), (3, 2)).shape will return an array with shape (3, 2, 2) instead of (3, 2).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mattjjcommented, Mar 3, 2019

Closed by #472 I believe!

0reactions
fehiepsicommented, Mar 2, 2019

Sure, I’ll do that. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

jax.random.bernoulli - JAX documentation
Must be broadcast-compatible with p.shape . The default (None) produces a result shape equal to p.shape . Return type.
Read more >
symjax - arXiv
JAX is a python interface that provides a Numpy-like software on top ... and b is an array type, the semantics of scan...
Read more >
Untitled
Juliana gulasova, Meracun kucing, Wvls radio, Amardeep singh natt dance with sargun, Top goals bundesliga 2013, Stf-2 subwoofer amazon, What is bone cancer, ......
Read more >
NumPyro Documentation - Read the Docs
Pyro and PyTorch users can rely on the same API and batching semantics as in ... Binomial distribution) is unknown and randomly drawn...
Read more >
https://www.scopus.com/scopus/inward/record.url?pa...
No information is available for this page.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found