-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
support Lgamma and BroadcastTo Ops in order to support probabilistic models (Poisson distribution) #2011
Comments
Hi Lukas, Can you share a bit about your model/use-case? There's a long tail of ops that TF.js is missing and we are trying to prioritize based on use-case. |
hi @dsmilkov, our specific use case is the computation of probabilistic models for high energy physics models at CERN, using this package: https://github.com/diana-hep/pyhf but I think being able to compute a Poisson distribution is probably of much broader appeal for any model using tensorflow probability. |
The rather monstrous PR#1356 contained a |
hi @DirkToewe I think that would be awesome and maybe easier to merge. Do you know anytone working on lgamma? |
No idea sorry. A
It's C code but fairly easy to read and understand. Should be feasible to implement using existing TFJS functions as well. |
@DirkToewe -- copying here for usefulness
|
Noting that BroadcastTo is also needed for the music transformer model. |
Hi, @lukasheinrich Apologize for the delayed response and I see this PR #2238 got merged for tf.broadcastTo but at the moment It seems like we haven't implemented If someone wants to contribute for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you. |
We definitely would want the LGamma op if you want to support Poisson distributions fully, no? |
Closing as stale. Please @mention us if this needs more attention. |
@google-ml-butler not stale... |
@dsmilkov as the @google-ml-butler isn't taggable on GitHub can you unstale this? |
When trying to covnert a model that uses
tensorflow_probability.distributions.Poisson
I get the errorIn order to support probabilistic models using those libraries itwould be great if those Ops could be added
@kratsg @matthewfeickert
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/lgamma
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/broadcast-to
The text was updated successfully, but these errors were encountered: