docstr: predictor config setting
docstr_tok: ["predictor","config","setting"]
code: def _set_config(self):
      """
      predictor config setting
      """
      cpu_config = AnalysisConfig(self.default_pretrained_model_path)
      cpu_config.disable_glog_info()
      cpu_config.disable_gpu()
      cpu_config.switch_ir_optim(False)
      self.cpu_predictor = create_paddle_predictor(cpu_config)
  
      try:
          _places = os.environ["CUDA_VISIBLE_DEVICES"]
          int(_places[0])
          use_gpu = True
      except:
          use_gpu = False
      if use_gpu:
          gpu_config = AnalysisConfig(
              self.default_pretrained_model_path
          )
          gpu_config.disable_glog_info()
          gpu_config.enable_use_gpu(
              memory_pool_init_size_mb=500, device_id=0
          )
          self.gpu_predictor = create_paddle_predictor(gpu_config)
  
imports: import os
  import ast
  import argparse
  import numpy
  import paddlehub
  import paddle.fluid
  from paddlehub.module.module import moduleinfo, runnable
  from paddle.fluid.core import PaddleTensor, AnalysisConfig, create_paddle_predictor
  from paddlehub.io.parser import txt_parser
  from vgg16_imagenet.vgg import VGG
  from vgg16_imagenet.processor import load_label_info
  from vgg16_imagenet.data_feed import test_reader
label_desc: Use image node_id 6 for calling the VGG16 obj's underlying member method code with example usage: obj._set_config() without return types