Closed TimotheeLeBerresonos closed 3 years ago
Not sure I understand what mismatch you are referring to, since 0x10 == 2
. To me all hex values seem to match their decimal counterparts.
I think 0x10 == 16
usually. That is the case in python at least, so the behavior changed after #123 .
Oh, your are right. I mistook them for binary values. Actually, that is what they are meant to be, otherwise, the values would be quite scattered. This is an error in the spec, not the tools, which needs a bit of consideration to fix.
Alright, thank you !
The spec has been updated to clarify that the literals are meant to be binary.
In the specification, the khronos item types are defined as:
In https://github.com/KhronosGroup/NNEF-Tools/blob/master/parser/python/nnef/binary.py, the item types are defined as:
This mismatch originates from #123 , where its seems 0x10 was converted to 2 and so on.