parameters: (devnum=0)
return_statement: return _custack.top
docstring: Get the current device or use a device by device number.
docstring_summary: Get the current device or use a device by device number.
docstring_tokens: Get the current device or use a device by device number .
function: def _get_device(devnum=0):
      """Get the current device or use a device by device number.
      """
      if not _custack:
          _custack.push(get_gpu(devnum))
      return _custack.top
function_tokens: def _get_device ( devnum = 0 ) : if not _custack : _custack . push ( get_gpu ( devnum ) ) return _custack . top