如何显示Caffe故障堆栈跟踪?

问题描述 投票:1回答:1

调试调用pycaffe的Python脚本,而pycaffe又调用Google protobuf。

当我运行脚本时,我收到错误:

F0304 10:19:58.538651 18829 io.cpp:67] Check failed: proto.SerializeToOstream(&output) 
*** Check failure stack trace: ***

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

但没有失败堆栈跟踪。如何打印堆栈跟踪?

python c++ caffe pycaffe
1个回答
1
投票

您可能需要更改环境变量GLOG_minloglevel的值

export GLOG_minloglevel=2

在运行caffe之前。

© www.soinside.com 2019 - 2024. All rights reserved.