Core Python Classes - Core Python Classes - 3.0 English - UG1414

Vitis AI User Guide (UG1414)

Document_ID
UG1414
Release_Date
2023-02-24
Version
3.0 English

DeviceInfo()

An object which will wrap DPU target information.
Note: Users should not create this object by themselves but should rely on the API vitis_vai.get_target_info() to return this object, which will contain diverse property fields:
  • batch: batch size supported by the DPU target on-board.
  • target: name of the DPU target.
  • fingerprint: fingerprint of the DPU target on-board.

The general way to use DeviceInfo is:

from tensorflow.compiler import vitis_vai
...
target_info = vitis_ai.get_target_info()  
batch = target_info.batch
name = target_info.target
fingerprint = target_info.fingerprint
...