docstr: predictor config setting
docstr_tok: ["predictor","config","setting"]
code: def _set_config(self):
      """
      predictor config setting
      """
      # encoder
      cpu_config_enc = Config(self.pretrained_encoder_net)
      cpu_config_enc.disable_glog_info()
      cpu_config_enc.disable_gpu()
      self.cpu_predictor_enc = create_predictor(cpu_config_enc)
      # decoder
      cpu_config_dec = Config(self.pretrained_decoder_net)
      cpu_config_dec.disable_glog_info()
      cpu_config_dec.disable_gpu()
      self.cpu_predictor_dec = create_predictor(cpu_config_dec)
  
      try:
          _places = os.environ["CUDA_VISIBLE_DEVICES"]
          int(_places[0])
          use_gpu = True
      except:
          use_gpu = False
      if use_gpu:
          # encoder
          gpu_config_enc = Config(self.pretrained_encoder_net)
          gpu_config_enc.disable_glog_info()
          gpu_config_enc.enable_use_gpu(
              memory_pool_init_size_mb=1000, device_id=0
          )
          self.gpu_predictor_enc = create_predictor(gpu_config_enc)
          # decoder
          gpu_config_dec = Config(self.pretrained_decoder_net)
          gpu_config_dec.disable_glog_info()
          gpu_config_dec.enable_use_gpu(
              memory_pool_init_size_mb=1000, device_id=0
          )
          self.gpu_predictor_dec = create_predictor(gpu_config_dec)
  
imports: from __future__ import absolute_import
  from __future__ import division
  import argparse
  import ast
  import copy
  import os
  import time
  import numpy
  import paddle
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from stylepro_artistic.data_feed import reader
  from stylepro_artistic.processor import base64_to_cv2
  from stylepro_artistic.processor import cv2_to_base64
  from stylepro_artistic.processor import fr
  from stylepro_artistic.processor import postprocess
  import paddlehub
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 2 for calling the StyleProjection obj's underlying member method code with example usage: obj._set_config() without return types