Convert tool failing at export model stage

Which Khadas SBC do you use?

Vim3

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

20.04 (the latest one)

Please describe your issue below:

I am trying to convert a custom yolov3 model with 2 classes and 608x608 resolution. The conversion script successfully passes the import and quantise steps, but gives an error during the model export phase.

Post a console log of your issue below:

dmitry@ip-172-19-64-139:~/workspace/aml_npu_sdk/acuity-toolkit/python$ ./convert --model-name yolov3 --platform darknet --model /home/dmitry/workspace/data/yolov3_608.cfg --weights /home/dmitry/workspace/data/yolov3_608_final.weights --mean-values ‘0 0 0 0.00390625’ --quantized-dtype asymmetric_affine --source-files ./data/dataset/dataset0.txt --kboard VIM3 --print-level 0

–+ KSNN Convert tools v1.3 ±-

Start import model …
Done.import model success !!!

Start to Generate inputmeta …
Done.Gerate inputmeta success !!!

Start quantize …
Done.Quantize success !!!

Start export model …
2023-04-14 11:03:22.650225: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘libcudart.so.10.1’; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/dmitry/workspace/aml_npu_sdk/acuity-toolkit/bin/acuitylib:/tmp/_MEIIK5Wn2
2023-04-14 11:03:22.650247: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
I Namespace(batch_size=None, build_platform=‘make’, customer_lids=None, customer_ops=None, dtype=‘quantized’, export=‘ovxlib’, force_remove_permute=False, model=‘Model.json’, model_data=‘Model.data’, model_quantize=‘Model.quantize’, optimize=‘VIPNANOQI_PID0X88’, output_path=None, pack_nbg_unify=True, pack_nbg_viplite=False, pack_vdata=False, postprocess_file=None, save_fused_graph=False, target_ide_project=‘linux64’, viv_sdk=‘…/bin/vcmdtools’, which=‘export’, with_input_meta=‘Model_inputmeta.yml’)
I Load model in Model.json
I Load data in Model.data
I Load input meta Model_inputmeta.yml
I Load quantization tensor table Model.quantize
I Start exporting ovxlib case…
D Process input_0 …
D Acuity output shape(input): (1 3 608 608)

[SNIP]

4055 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4061:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (*)(const char )’
4061 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4067:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4067 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4073:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4073 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4079:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4079 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4085:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4085 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4091:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4091 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4097:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4097 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4103:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4103 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4109:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4109 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4115:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4115 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4121:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4121 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4127:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4127 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4133:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4133 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4139:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4139 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4145:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4145 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4151:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4151 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4157:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4157 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4163:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4163 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4169:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4169 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4175:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4175 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4181:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4181 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4187:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4187 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4193:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4193 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4199:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4199 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4205:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4205 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4211:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4211 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4217:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4217 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4223:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4223 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4229:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4229 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4235:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4235 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4241:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4241 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4247:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4247 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4253:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4253 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4259:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4259 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4265:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4265 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4271:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4271 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4277:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4277 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4283:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4283 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4289:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4289 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4295:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4295 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4301:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4301 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4307:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4307 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4313:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4313 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4319:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4319 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4325:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4325 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4331:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4331 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4337:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4337 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4343:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4343 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4349:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4349 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4355:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4355 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4361:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4361 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4367:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4367 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4373:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4373 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4379:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4379 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4385:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4385 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4391:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4391 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4397:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4397 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4403:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4403 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4409:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4409 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4415:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4415 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4421:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4421 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4427:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4427 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4433:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4433 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4439:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4439 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4445:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4445 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4451:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4451 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4457:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4457 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4463:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4463 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4469:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4469 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4475:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4475 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4481:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4481 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4487:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4487 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4493:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4493 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4499:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4499 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4505:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4505 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4511:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4511 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4517:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4517 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4523:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4523 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4529:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4529 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4535:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4535 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4541:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4541 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4547:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4547 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4553:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4553 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4559:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4559 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4565:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4565 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4571:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4571 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4577:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4577 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4583:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4583 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4589:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4589 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4595:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4595 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4601:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4601 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4607:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4607 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4613:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4613 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4619:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4619 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4625:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4625 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4631:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4631 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4637:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4637 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4643:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4643 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4649:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4649 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4655:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4655 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4661:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4661 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4667:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4667 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4673:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4673 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4679:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4679 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4685:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4685 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4691:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4691 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4697:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4697 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4703:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4703 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4709:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4709 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4715:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4715 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4721:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4721 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4727:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4727 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4733:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4733 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4739:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4739 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4745:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4745 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4751:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4751 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4757:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4757 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4763:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4763 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4769:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char )’
4769 | attr.dtype.scale = nan;
| ^~~
vnn_model.c:4775:24: error: incompatible types when assigning to type ‘float’ from type ‘attribute((const)) double (
)(const char *)’
4775 | attr.dtype.scale = nan;
| ^~~
make: *** [/home/dmitry/workspace/aml_npu_sdk/acuity-toolkit/python/makefile.linux:53: vnn_model.o] Error 1
E Fatal model compilation error: 512
W ----------------Error(1),Warning(0)----------------
[8377] Failed to execute script pegasus
Traceback (most recent call last):
File “pegasus.py”, line 131, in
File “pegasus.py”, line 116, in main
File “acuitylib/app/exporter/commands.py”, line 186, in execute
File “acuitylib/vsi_nn.py”, line 658, in export_ovxlib
File “acuitylib/app/exporter/ovxlib_case/export_ovxlib.py”, line 74, in run
File “acuitylib/app/exporter/ovxlib_case/casegenerator.py”, line 695, in generate
File “acuitylib/app/exporter/ovxlib_case/casegenerator.py”, line 654, in _gen_special_case
File “acuitylib/app/exporter/ovxlib_case/casegenerator.py”, line 541, in _gen_nb_file
File “acuitylib/app/exporter/ovxlib_case/casegenerator.py”, line 343, in _compile_linux
File “acuitylib/acuitylog.py”, line 263, in e
acuitylib.acuityerror.AcuityError: (‘Fatal model compilation error: 512’, ‘nbg_compile’)

dmitry@ip-172-19-64-139:~/workspace/aml_npu_sdk/acuity-toolkit/python$