As of v1.3 the following fails with the below error. Can anyone suggest a workaround? Thank you.
In [1]: from ray import tune
In [2]: c = tune.choice([[1,2],[3,4]])
In [3]: c.sample()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-b421c6722185> in <module>
----> 1 c.sample()
~/miniconda3/envs/fctk/lib/python3.7/site-packages/ray/tune/sample.py in sample(self, spec, size)
45 def sample(self, spec=None, size=1):
46 sampler = self.get_sampler()
---> 47 return sampler.sample(self, spec=spec, size=size)
48
49 def is_grid(self):
~/miniconda3/envs/fctk/lib/python3.7/site-packages/ray/tune/sample.py in sample(self, domain, spec, size)
295 size: int = 1):
296
--> 297 items = np.random.choice(domain.categories, size=size).tolist()
298 return items if len(items) > 1 else domain.cast(items[0])
299
mtrand.pyx in numpy.random.mtrand.RandomState.choice()
ValueError: a must be 1-dimensional