Core Python APIs - Core Python APIs - 3.0 English - UG1414

Vitis AI User Guide (UG1414)

Document_ID
UG1414
Release_Date
2023-02-24
Version
3.0 English
Table 1. get_target_info()
Description Parameters Return
Gets target information including batch, fingerprint, target name. You can use info for batching or get target name information. None A DeviceInfo object. See core classes section for more details about this object type.
Table 2. create_wego_model(input_h5, feed_dict={}, accuracy_mode= vitis_vai.enums.AccuracyMode.Default)
Description Parameters Return
Creates WeGO model, convert Keras h5 file into concrete function
  1. input_h5: Path to the h5 file.
  2. feed_dict: Infer shape configuration when input model without fixed input shape.
  3. accuracy_mode:
    • vitis_vai.enums.AccuracyMode.Default: Inference without CPU FixNeuron.
    • vitis_vai.enums.AccuracyMode.ReserveReduantFixNeurons: Inference with CPU FixNeruon
New concrete function with VaiWeGOOps.
Note: WeGO eliminates CPU FixNeurons operators within quantized model to achieve optimal performance by default. However for those models containing many CPU FixNeurons operators, the models’ accuracy maybe decrease by deploying them with default value(vitis_vai.enums.AccuracyMode.Default).In such cases, you can switch to vitis_vai.enums.AccuracyMode.ReserveReduantFixNeurons to achieve better accuracy.