Open joelberkeley opened 1 year ago
@burmako Seems like something you would want to take on?
@cheshire @tpopp Thank you for looping me in! Within the StableHLO team, we're focused on defining the semantics of the StableHLO opset as well as implementing it in the StableHLO dialect. This work also includes converters to/from MHLO and HLO.
Ensuring the semantics of the HLO opset and/or supporting the client HLO APIs like UniformFloatingPointDistribution
and UniformIntDistribution
is not something that's currently on our radar, so I think we'll need to ask someone else for guidance. Apologies for not being more helpful!
The expected range is [a,b)
in all distribution functions that I've seen on real values, so I think points 1 and 2 are bugs. With this, the user would be expected to handle [x,x)
if they expect that to return x
, as that is not the common behavior. Please correct me though if you've seen this behavior used/desired commonly.
I guess this is a problem that inf
compares equal to inf
even though it's very questionable mathematically. I was thinking that [inf, inf)
is for different infinities, which they can be but aren't necessarily. OK I'll go back to the drawing board
Copied from a TensorFlow issue I raised and closed
Issue Type
Bug
Source
source (I actually use this binary but that isn't compiled by Google))
Tensorflow Version
2.8
Custom Code
Yes
OS Platform and Distribution
Ubuntu 20.04
Mobile device
n/a
Python version
n/a
Bazel version
2.4.1
GCC/Compiler version
Unknown, between 7.5 and 9.3
CUDA/cuDNN version
CUDA Version: 11.6
GPU model and memory
NVIDIA GeForce GTX 1070
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output