摘要: 调试的指令很简单: cd $CAFFE_ROOT, 1. gdb ./build/tools/caffe 2. 设置运行参数 set args train --solver=xxxxsolver.prototxt 3. 设置断点, 比如b solver.cpp:59 , 此时会出现“Make bre 阅读全文
posted @ 2017-06-04 22:49 Key_Ky 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: 上面的例子主要是想知道B,C是否会有自己的虚表指针,结果我用gdb -g test.cpp进行调试,发现: p a -> {_vptr.A = 0x400c28 <vtable for A+16>, i = 4197277} p b -> {<A> = {_vptr.A = 0x400c10 <vt 阅读全文
posted @ 2017-06-04 21:17 Key_Ky 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 直接看例子就好: Note keyword virtual here. virtual inheritance. virtual not needed here. It is necessary to initialize all virtual base classes explicitly in 阅读全文
posted @ 2017-06-04 19:31 Key_Ky 阅读(385) 评论(0) 推荐(0) 编辑