class_docstr: TVM device strucure.
  
  Typically constructed using convenience function
  :meth:`tvm.runtime.device`.
  
  Exposes uniform interface to device-specific APIs such as CUDA or
  OpenCL.  Some properties may return None depending on whether an
  API exposes that particular property.
  
  NOTE!  The integer values in MASK2STR and STR2MASK *must* correspond
  to the values provided by the DLDeviceType and TVMDeviceExtType enums.
class_docstr_tok: ["TVM","device","strucure",".","Typically","constructed","using","convenience","function",":","meth",":","`","tvm.runtime.device","`",".","Exposes","uniform","interface","to","device-specific","APIs","such","as","CUDA","or","OpenCL",".","Some","properties","may","return","None","depending","on","whether","an","API","exposes","that","particular","property",".","NOTE","!","The","integer","values","in","MASK2STR","and","STR2MASK","*","must","*","correspond","to","the","values","provided","by","the","DLDeviceType","and","TVMDeviceExtType","enums","."]
docstr: Number of threads that execute concurrently.
  
  Returns device value for cuda, rocm, and vulkan.  Returns
  1 for metal and opencl devices, regardless of the physical
  device.  Returns remote device value for RPC devices.  Returns
  None for all other devices.
  
  Returns
  -------
  warp_size : int or None
      Number of threads that execute concurrently
docstr_tok: ["Number","of","threads","that","execute","concurrently",".","Returns","device","value","for","cuda",",","rocm",",","and","vulkan",".","Returns","1","for","metal","and","opencl","devices",",","regardless","of","the","physical","device",".","Returns","remote","device","value","for","RPC","devices",".","Returns","None","for","all","other","devices",".","Returns","--","--","--","-","warp_size",":","int","or","None","Number","of","threads","that","execute","concurrently"]
code: def warp_size(self):
      """Number of threads that execute concurrently.
  
      Returns device value for cuda, rocm, and vulkan.  Returns
      1 for metal and opencl devices, regardless of the physical
      device.  Returns remote device value for RPC devices.  Returns
      None for all other devices.
  
      Returns
      -------
      warp_size : int or None
          Number of threads that execute concurrently
  
      """
      return self._GetDeviceAttr(self.device_type, self.device_id, 2)
  
imports: import ctypes
  import json
  import numpy
  from .base import _LIB, check_call
label_desc: Use image node_id 5 for calling the Device obj's underlying member method code with example usage: obj.warp_size() and returns: self