Open dicklim opened 1 year ago
@zhupengyang 我也遇到了同样的问题 系统Ubuntu 22.04 LTS gdb debug: Program received signal SIGSEGV, Segmentation fault. 0x00000000011924df in paddle::lite::operators::FlattenContiguousRangeOp::InferType() ()
模型为:PP-OCRv4-mobile-rec
In file build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/compiler/java/java_file.cc:68
add const behind the operator like
bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2){
bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2)const {
it seems like a feature in cpp17
可以尝试使用最新版 Paddle Lite opt 工具 https://github.com/PaddlePaddle/Paddle-Lite/releases https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.13-rc/opt_linux_x86 进行模型转换。 如果仍然报错,运行前请 export GLOG_v=5 打开详细 log,然后把详细 log 上传一下。
跑出的文件为:
但是我后来想跑opt的时候就会报错,代码如下:
跑了报错139
Process finished with exit code 139
换用命令行跑结果一样然后我怀疑会不会是没编译好,就去编译了一下
./lite/tools/build.sh build_optimize_tool
结果还是不行,报错如下
想问一下这个原因是什么?要如何解决?我的内存内存肯定是够的,所以不知道为啥会这样?
extern_glog-configure-err.log
也没有任何结果是否是我编译有什么问题?我是按照文档的protocol做的,换了pytorch的官方模型也出不来结果?求解