docstr: predictor config setting.
docstr_tok: ["predictor","config","setting","."]
code: def _set_config(self):
      """
      predictor config setting.
      """
  
      # create default cpu predictor
      model = self.default_pretrained_model_path + ".pdmodel"
      params = self.default_pretrained_model_path + ".pdiparams"
      cpu_config = Config(model, params)
      cpu_config.disable_glog_info()
      cpu_config.disable_gpu()
      self.cpu_predictor = create_predictor(cpu_config)
  
      # create predictors using various types of devices
  
      # npu
      npu_id = self._get_device_id("FLAGS_selected_npus")
      if npu_id != -1:
          # use npu
          npu_config = Config(model, params)
          npu_config.disable_glog_info()
          npu_config.enable_npu(device_id=npu_id)
          self.npu_predictor = create_predictor(npu_config)
  
      # gpu
      gpu_id = self._get_device_id("CUDA_VISIBLE_DEVICES")
      if gpu_id != -1:
          # use gpu
          gpu_config = Config(model, params)
          gpu_config.disable_glog_info()
          gpu_config.enable_use_gpu(
              memory_pool_init_size_mb=1000, device_id=gpu_id
          )
          self.gpu_predictor = create_predictor(gpu_config)
  
      # xpu
      xpu_id = self._get_device_id("XPU_VISIBLE_DEVICES")
      if xpu_id != -1:
          # use xpu
          xpu_config = Config(model, params)
          xpu_config.disable_glog_info()
          xpu_config.enable_xpu(100)
          self.xpu_predictor = create_predictor(xpu_config)
  
imports: from __future__ import absolute_import
  import argparse
  import ast
  import os
  from functools import partial
  import numpy
  import paddle
  import paddle.jit
  import paddle.static
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from .data_feed import reader
  from .processor import base64_to_cv2
  from .processor import load_label_info
  from .processor import postprocess
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 3 for calling the YOLOv3DarkNet53Vehicles obj's underlying member method code with example usage: obj._set_config() without return types