class_docstr: Target device information, use through TVM API.
  
  Note
  ----
  You can create target using the constructor or the following functions
  
  - :py:func:`tvm.target.arm_cpu` create arm_cpu target
  - :py:func:`tvm.target.cuda` create CUDA target
  - :py:func:`tvm.target.rocm` create ROCM target
  - :py:func:`tvm.target.mali` create Mali target
  - :py:func:`tvm.target.intel_graphics` create Intel Graphics target
class_docstr_tok: ["Target","device","information",",","use","through","TVM","API",".","Note","--","--","You","can","create","target","using","the","constructor","or","the","following","functions","-",":","py",":","func",":","`","tvm.target.arm_cpu","`","create","arm_cpu","target","-",":","py",":","func",":","`","tvm.target.cuda","`","create","CUDA","target","-",":","py",":","func",":","`","tvm.target.rocm","`","create","ROCM","target","-",":","py",":","func",":","`","tvm.target.mali","`","create","Mali","target","-",":","py",":","func",":","`","tvm.target.intel_graphics","`","create","Intel","Graphics","target"]
docstr: Returns the current target.
  
  Parameters
  ----------
  allow_none : bool
      Whether allow the current target to be none
  
  Raises
  ------
  ValueError if current target is not set.
docstr_tok: ["Returns","the","current","target",".","Parameters","--","--","--","--","--","allow_none",":","bool","Whether","allow","the","current","target","to","be","none","Raises","--","--","--","ValueError","if","current","target","is","not","set","."]
code: def current(allow_none=True):
      """Returns the current target.
  
      Parameters
      ----------
      allow_none : bool
          Whether allow the current target to be none
  
      Raises
      ------
      ValueError if current target is not set.
      """
      return _ffi_api.TargetCurrent(allow_none)
  
imports: import json
  import re
  import warnings
  from typing import Union
  import tvm._ffi
  from tvm._ffi import register_func
  from tvm._ffi.runtime_ctypes import Device
  from tvm.runtime import Object, convert
  from tvm.runtime.container import String
  from tvm.ir.container import Map, Array
  from .None import _ffi_api
label_desc: Use image node_id 7 for calling the Target obj's underlying member method code with example usage: obj.current(allow_none) and returns: _ffi_api