Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
If I run tune.quniform(-10,10, 1).sample() then it doesn't follow the quantization.
If I use anything else than 1 then it works.
There's a special case for Quantizedhere, which changes for only q=1. This is a bit confusing, and misleading, which can result in weird bugs (as it did in my case).
Versions / Dependencies
Ray: d9e795c (current master)
Reproduction script
from ray import tune
[tune.quniform(-10,10, 2).sample() for _ in range(10)]
# [-4.0, 10.0, -10.0, 4.0, -6.0, 4.0, 8.0, 8.0, -0.0, 8.0]
[tune.quniform(-10,10, 1).sample() for _ in range(10)]
# [4.475882088058176, ... ]
Issue Severity
Medium: It is a significant difficulty but I can work around it.
What happened + What you expected to happen
If I run
tune.quniform(-10,10, 1).sample()
then it doesn't follow the quantization. If I use anything else than 1 then it works. There's a special case forQuantized
here, which changes for onlyq=1
. This is a bit confusing, and misleading, which can result in weird bugs (as it did in my case).Versions / Dependencies
Ray:
d9e795c
(current master)Reproduction script
Issue Severity
Medium: It is a significant difficulty but I can work around it.