This function dumps the simulation results of the quantized model, including weights and activation results.
vitis_quantize.VitisQuantizer.dump_model(
model,
dataset=None,
output_dir=’./dump_results’,
dump_float=False,
weights_only=False)
Arguments
- model
- A
tf.keras.Modelobject, the quantized model to dump. - dataset
- A
tf.data.Dataset,keras.utils.Sequenceornp.numpyobject, the dataset used to dump, not needed if weights_only is set toTrue. - output_dir
- A
stringobject, the directory to save the dump results. - weights_only
- A
boolobject, set toTrueto only dump the weights, set toFalsewill also dump the activation results.