class_docstr: Auto configuration.
class_docstr_tok: ["Auto","configuration","."]
docstr: Auto configuration to run with local CPU.
  
  Examples:
      >>> from towhee import pipe, AutoConfig
      >>> p = (pipe.input('a')
      ...          .flat_map('a', 'b', lambda x: [y for y in x], config=AutoConfig.LocalCPUConfig())
      ...          .output('b'))
docstr_tok: ["Auto","configuration","to","run","with","local","CPU",".","Examples",":",">",">",">","from","towhee","import","pipe",",","AutoConfig",">",">",">","p","=","(","pipe.input","(","'","a","'",")","...",".flat_map","(","'","a","'",",","'","b","'",",","lambda","x",":","[","y","for","y","in","x","]",",","config=AutoConfig.LocalCPUConfig","(",")",")","...",".output","(","'","b","'",")",")"]
code: def LocalCPUConfig():
      """
      Auto configuration to run with local CPU.
  
      Examples:
          >>> from towhee import pipe, AutoConfig
          >>> p = (pipe.input('a')
          ...          .flat_map('a', 'b', lambda x: [y for y in x], config=AutoConfig.LocalCPUConfig())
          ...          .output('b'))
      """
      return nd_conf.TowheeConfig.set_local_config(device=-1)
  
file_path: towhee/towhee/runtime/auto_config.py
imports: import threading
  from functools import wraps
  import contextvars
  import contextlib
  import towhee.runtime.pipeline_loader
  import towhee.runtime.node_config
  from towhee.utils.log import engine_log
label_desc: Use image node_id 4 for calling the AutoConfig obj's underlying member method code with example usage: obj.LocalCPUConfig() and returns: nd_conf