class_docstr: A Minin object to add hpo related methods to models.
  
  It is used to add hpo related search methods onto
  tf.keras.Sequential, tf.keras.Model, as well as custom
      model subclassing from tf.keras.Model.
class_docstr_tok: ["A","Minin","object","to","add","hpo","related","methods","to","models",".","It","is","used","to","add","hpo","related","search","methods","onto","tf.keras.Sequential",",","tf.keras.Model",",","as","well","as","custom","model","subclassing","from","tf.keras.Model","."]
code: def _run_search_n_procs(self, isprune, n_procs=4):
      # subp_study = copy.deepcopy(self.study)
      # subp_objective = copy.deepcopy(self.objective)
      subp_run_kwargs = copy.deepcopy(self.run_kwargs)
      n_trials = subp_run_kwargs.get("n_trials", None)
      if n_trials:
          subp_n_trials = math.ceil(n_trials / n_procs)
          subp_run_kwargs["n_trials"] = subp_n_trials
  
      subp_kwargs = {
          "study": self.study,
          "get_model_builder_func": self._get_model_builder,
          "get_model_builder_func_args": self._get_model_builder_args(),
          "backend": self.backend,
          "target_metric": self.target_metric,
          "isprune": isprune,
          "report_method": self.report_method,
          "fit_kwargs": self.fit_kwargs,
          "run_kwargs": subp_run_kwargs,
      }
  
      # set_loky_pickler('pickle')
      # Parallel(n_jobs=2)(_run_search(**subp_kwargs) for _ in range(1))
      # set_loky_pickler()
      run_parallel(
          func=self._run_search_subproc,
          kwargs=subp_kwargs,
          n_procs=n_procs,
      )
  
imports: import copy
  import warnings
  from .objective import Objective
  from bigdl.nano.automl.hpo.backend import create_hpo_backend
  from bigdl.nano.automl.hpo.search import _search_summary, _end_search, _create_study, _validate_args, _strip_val_prefix, _prepare_args
  from bigdl.nano.automl.hpo.space import AutoObject
  from bigdl.nano.utils.common import invalidInputError
  from bigdl.nano.automl.utils.parallel import run_parallel
  import math
label_desc: Use image node_id 7 for calling the HPOMixin obj's underlying member method code with example usage: obj._run_search_n_procs(isprune, n_procs) without return types