class_docstr: DGL context strucure.
docstr: Get compute verison number in string.
  
  Currently used to get compute capability of CUDA device.
  
  Returns
  -------
  version : str
      The version string in `major.minor` format.
docstr_tok: ["Get","compute","verison","number","in","string",".","Currently","used","to","get","compute","capability","of","CUDA","device",".","Returns","--","--","--","-","version",":","str","The","version","string","in","`","major.minor","`","format","."]
code: def compute_version(self):
      """Get compute verison number in string.
  
      Currently used to get compute capability of CUDA device.
  
      Returns
      -------
      version : str
          The version string in `major.minor` format.
      """
      return _api_internal._GetDeviceAttr(
          self.device_type, self.device_id, 4
      )
  
imports: from __future__ import absolute_import
  import ctypes
  import json
  import numpy
  from ..None import _api_internal
  from .base import _LIB, check_call
label_desc: Use image node_id 7 for calling the DGLContext obj's underlying member method code with example usage: obj.compute_version() and returns: _api_internal