qai_hub.get_devices

get_devices(name='', os='', attributes=[])

Returns a list of available devices.

The returned list of devices are compatible with the supplied name, os, and attributes. The name must be an exact match with an existing device and os can either be a version ("15.2") or a version range ("[14,15)").

パラメータ:
  • name (str) -- Only devices with this exact name will be returned.

  • os (str) -- Only devices with an OS version that is compatible with this os are returned

  • attributes (Union[str, List[str]]) -- Only devices that have all requested properties are returned.

戻り値:

device_list -- List of available devices, comptatible with the supplied filters.

戻り値の型:

List[Device]

サンプル

import qai_hub as hub

# Get all devices
devices = hub.get_devices()

# Get all devices matching this operating system
devices = hub.get_devices(os="12")

# Get all devices matching this chipset
devices = hub.get_devices(attributes=["chipset:quantization-snapdragon-8gen2"])

# Get all devices matching hardware
devices = hub.get_devices(name="Samsung Galaxy S23")