Skip to content

Commit 39e26cd

Browse files
authored
Merge pull request #1895 from luarss/master
[Autotuner] fix adarray bug
2 parents 1bf751d + bf24c34 commit 39e26cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flow/util/distributed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def apply_condition(config, data):
227227
if dp_pad_step > 1:
228228
config['CELL_PAD_IN_SITES_DETAIL_PLACEMENT'] = tune.sample_from(
229229
lambda spec: tune.choice(
230-
np.adarray.tolist(
230+
np.ndarray.tolist(
231231
np.arange(
232232
dp_pad_min,
233233
spec.config.CELL_PAD_IN_SITES_GLOBAL_PLACEMENT +
@@ -248,15 +248,15 @@ def read_tune(this):
248248
if this['step'] == 1:
249249
return tune.randint(min_, max_)
250250
return tune.choice(
251-
np.adarray.tolist(
251+
np.ndarray.tolist(
252252
np.arange(min_,
253253
max_,
254254
this['step'])))
255255
if this['type'] == 'float':
256256
if this['step'] == 0:
257257
return tune.uniform(min_, max_)
258258
return tune.choice(
259-
np.adarray.tolist(
259+
np.ndarray.tolist(
260260
np.arange(min_,
261261
max_,
262262
this['step'])))
@@ -280,7 +280,7 @@ def read_tune_ax(name, this):
280280
elif this['type'] == 'float':
281281
if this['step'] == 1:
282282
dict_["type"] = "choice"
283-
dict_["values"] = tune.choice(np.adarray.tolist(
283+
dict_["values"] = tune.choice(np.ndarray.tolist(
284284
np.arange(min_,
285285
max_,
286286
this['step'])))

0 commit comments

Comments
 (0)