Open koenvandesande opened 1 year ago
Issue #1206 runs into the same error, maybe it is a variation on this problem. This example is probably easier to reproduce.
Hi, @koenvandesande
It needs to specify the same target when you do quantization calibration and test. So the script to run should be:
python vitis_min.py --target DPUCZDX8G_ISA1_B1024
python vitis_min.py --quant_mode test --export --target DPUCZDX8G_ISA1_B1024
When using a network that splits the tensor at some point in the network into two pieces, I run into a problem. The
torch.split
operator is not supported, so I rewrote it using two slices:This works, however, as soon as you try to use the new tensor (by applying a convolution), you get an error in the compilation step (quantization succeeds):
In the example script below, the problem occurs on the line with
t_213
, applying the convolution to the sliced tensor.Here is a minimal script to reproduce the problem. Run with:
python vitis_min.py
python vitis_min.py --quant_mode test --export --target DPUCZDX8G_ISA1_B1024