From bf24c34e0a24e66584a37b36639378a04a8ccba5 Mon Sep 17 00:00:00 2001 From: luarss <39641663+luarss@users.noreply.github.com> Date: Sun, 31 Mar 2024 06:18:23 +0000 Subject: [PATCH] fix adarray bug Signed-off-by: luarss <39641663+luarss@users.noreply.github.com> --- flow/util/distributed.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flow/util/distributed.py b/flow/util/distributed.py index e07ca547b6..5216da9487 100644 --- a/flow/util/distributed.py +++ b/flow/util/distributed.py @@ -227,7 +227,7 @@ def apply_condition(config, data): if dp_pad_step > 1: config['CELL_PAD_IN_SITES_DETAIL_PLACEMENT'] = tune.sample_from( lambda spec: tune.choice( - np.adarray.tolist( + np.ndarray.tolist( np.arange( dp_pad_min, spec.config.CELL_PAD_IN_SITES_GLOBAL_PLACEMENT + @@ -248,7 +248,7 @@ def read_tune(this): if this['step'] == 1: return tune.randint(min_, max_) return tune.choice( - np.adarray.tolist( + np.ndarray.tolist( np.arange(min_, max_, this['step']))) @@ -256,7 +256,7 @@ def read_tune(this): if this['step'] == 0: return tune.uniform(min_, max_) return tune.choice( - np.adarray.tolist( + np.ndarray.tolist( np.arange(min_, max_, this['step']))) @@ -280,7 +280,7 @@ def read_tune_ax(name, this): elif this['type'] == 'float': if this['step'] == 1: dict_["type"] = "choice" - dict_["values"] = tune.choice(np.adarray.tolist( + dict_["values"] = tune.choice(np.ndarray.tolist( np.arange(min_, max_, this['step'])))