huawei-noah / bolt

Bolt is a deep learning library with high performance and heterogeneous flexibility.
https://huawei-noah.github.io/bolt/
MIT License
910 stars 158 forks source link

使用1.2.1的X2bolt转换tflite失败(1.2.0没有问题) #63

Closed chillingche closed 2 years ago

chillingche commented 2 years ago

1.2.1替换了schema为tensorflow master版本,解析opcode出了问题。在tflite_adaptee的260行加了些日志,打印的opcode全是0:

[INFO] thread 12984 Start to convert ./xxx.tflite...
[parse_file] tfliteModel->operator_codes[0]->builtin_code : 0
[parse_file] tfliteModel->operator_codes[1]->builtin_code : 0
[parse_file] tfliteModel->operator_codes[2]->builtin_code : 0
[parse_file] tfliteModel->operator_codes[3]->builtin_code : 0
[parse_file] tfliteModel->operator_codes[4]->builtin_code : 0
[parse_file] tfliteModel->operator_codes[5]->builtin_code : 0
Segmentation fault
yuxianzhi commented 2 years ago

你好,目前Bolt支持tf 1.15的文件https://raw.githubusercontent.com/tensorflow/tensorflow/v1.15.0/tensorflow/lite/schema/schema_generated.h 正在修正问题 https://github.com/huawei-noah/bolt/pull/64