用GPU对demo里的image_classification预测出错
Created by: wangmengzhi
可以用GPU对demo里的image_classification进行训练,但用GPU预测的时候出现
I1107 20:03:31.056661 11262 Util.cpp:151] commandline: --use_gpu=1
*** stack smashing detected ***: python terminated
*** Aborted at 1478520211 (unix time) try "date -d @1478520211" if you are using GNU date ***
PC: @ 0x7f2c2c6e4c37 (unknown)
*** SIGABRT (@0x3e800002bfe) received by PID 11262 (TID 0x7f2c2ce8a740) from PID 11262; stack trace: ***
@ 0x7f2c2ca83330 (unknown)
@ 0x7f2c2c6e4c37 (unknown)
@ 0x7f2c2c6e8028 (unknown)
@ 0x7f2c2c7212a4 (unknown)
@ 0x7f2c2c7b8bbc (unknown)
@ 0x7f2c2c7b8b60 (unknown)
@ 0x7f2c26bae0de hl_create_global_resources()
@ 0x7f2c26bae609 hl_specify_devices_start()
@ 0x7f2c26bae93d hl_start()
@ 0x7f2c26b4c662 paddle::initMain()
@ 0x7f2c26bdb941 initPaddle()
@ 0x7f2c26848f8a _wrap_initPaddle
@ 0x49c4d9 (unknown)
@ 0x4a090c (unknown)
@ 0x49ab45 (unknown)
@ 0x4a090c (unknown)
@ 0x49ab45 (unknown)
@ 0x4a1c9a (unknown)
@ 0x4dfe94 (unknown)
@ 0x4dca56 (unknown)
@ 0x4b99a9 (unknown)
@ 0x499be5 (unknown)
@ 0x4a1634 (unknown)
@ 0x44e4a5 (unknown)
@ 0x44ec9f (unknown)
@ 0x44f904 (unknown)
@ 0x7f2c2c6cff45 (unknown)
@ 0x578c4e (unknown)
@ 0x0 (unknown)
Aborted (core dumped)
而且用GPU训练再用CPU预测结果是错的,同一个模型对所有图片的预测结果都是一样的,但用CPU训练再用CPU预测就能得到正确结果,这是为什么?