Issue with NBG format version
Nullkooland opened this issue · 1 comments
Hi, I tried to use the NBG parser to extract inputs/outputs information from a NBG binary compiled by the latest x86_linux simulator driver (included in the v1.1.57 release). However it produced this error message:
NBG parser is forward compatible with NBG format, please update NBG parser in time
fail to read NBG header
failed to read fix section data
It seems that the NBG produced by the latest driver has newer format version than that supported by the parser.
I tried to change the NBG_FORMAT_VERSION
to 0x00010016
and the parser can pass the format version check, but it failed to extract the quantization information of the input/output tensors of the NBG.
Here is the NBG binary compiled by the latest driver, the graph only contains a single quantized Conv2d
op, and the input/output tensors should have NBG_BUFFER_QUANTIZE_AFFINE_ASYMMETRIC
quantization format.
qnn_conv2d.nb.tar.gz
Sorry, I figured out the missing quantization information from NBG is my problem, I shouldn't have set the quantization info after the tensor has been created, so the quantization info isn't really passed to the internal driver.