Skip to content

Commit

Permalink
static init func
Browse files Browse the repository at this point in the history
  • Loading branch information
shingjan committed Aug 23, 2021
1 parent 169e23c commit fea3791
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/tvm/autotvm/tuner/xgboost_cost_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _reset_pool(self, space, target, task):

self.pool = PopenPoolExecutor(
max_workers=self.num_threads,
initializer=self._initializer,
initializer=XGBoostCostModel._initializer,
initargs=(space, target, task),
)

Expand Down Expand Up @@ -332,8 +332,6 @@ def _get_feature(self, indexes):
feas = pool.map_with_error_catching(self.feature_extract_func, need_extract)
for i, fea in zip(need_extract, feas):
fea_cache[i] = fea.value
print(fea)
print("_______________________\n")

feature_len = None
for idx in indexes:
Expand Down

0 comments on commit fea3791

Please sign in to comment.