Extracting Weights and Biases for AIE-ML Inference Solution - Extracting Weights and Biases for AIE-ML Inference Solution - 2026.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2026-06-23
Version
2026.1 English

After obtaining a trained model for the Radio-ML ConvNet Modulation Classifier, the last step before building an inference solution on AIE-ML v2 is to obtain a quantized set of weights and use it in the implementation.

For simplicity in this tutorial, we choose a bfloat16 implementation because quantization is straightforward.

The following code extracts the weights and biases from the Keras model. Then, it quantizes them to bfloat16. It then saves them in files for validating each layer of the network to be designed in AIE-ML v2 as follows.

figure