I0720 10:42:25.525190 27556 Util.cpp:166] commandline: --use_gpu=True --trainer_count=1
W0720 10:42:25.882525 27556 CpuId.h:112] PaddlePaddle wasn't compiled to use avx instructions, but these are available on your machine and could speed up CPU computations via CMAKE .. -DWITH_AVX=ON
I0720 10:42:25.935835 27556 GradientMachine.cpp:94] Initing parameters..
I0720 10:42:26.008275 27556 GradientMachine.cpp:101] Init parameters done.
F0720 10:42:26.245075 27556 BlockExpandOp.cpp:73] Check failed: seqLength == outputHeight * outputWidth (12 vs. 18446744073709551556)
*** Check failure stack trace: ***
@ 0x7f5a9339e06d google::LogMessage::Fail()
@ 0x7f5a933a1b1c google::LogMessage::SendToLog()
@ 0x7f5a9339db93 google::LogMessage::Flush()
@ 0x7f5a933a302e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f5a93134075 paddle::BlockExpandFunction::getColShape()
@ 0x7f5a93136021 paddle::BlockExpandForward<>::calc()
@ 0x7f5a930f42fb paddle::BlockExpandLayer::forward()
@ 0x7f5a92f96999 paddle::NeuralNetwork::forward()
@ 0x7f5a92f97633 paddle::GradientMachine::forwardBackward()
@ 0x7f5a9337a539 GradientMachine::forwardBackward()
@ 0x7f5a92f4439c _wrap_GradientMachine_forwardBackward
@ 0x7f5ac521d9c0 PyEval_EvalFrameEx
@ 0x7f5ac5220519 PyEval_EvalCodeEx
@ 0x7f5ac521d4b2 PyEval_EvalFrameEx
@ 0x7f5ac5220519 PyEval_EvalCodeEx
@ 0x7f5ac521d4b2 PyEval_EvalFrameEx
@ 0x7f5ac5220519 PyEval_EvalCodeEx
@ 0x7f5ac521d4b2 PyEval_EvalFrameEx
@ 0x7f5ac5220519 PyEval_EvalCodeEx
@ 0x7f5ac521d4b2 PyEval_EvalFrameEx
@ 0x7f5ac5220519 PyEval_EvalCodeEx
@ 0x7f5ac522073a PyEval_EvalCode
@ 0x7f5ac523996d run_mod
@ 0x7f5ac523aae8 PyRun_FileExFlags
@ 0x7f5ac523bd08 PyRun_SimpleFileExFlags
@ 0x7f5ac524dd6c Py_Main
@ 0x7f5ac4465830 __libc_start_main
@ 0x558abf9628bf (unknown)
Aborted (core dumped)
所以这个到底是什么错误,又没报错的行数
这个应该是你block_expand layer的上一层的卷积层的配置有问题;
请检查下该层之前的: padding、filter size(blockH)、stride、input shape这些参数是否正确
根据日志,下边这个公式的计算结果为负值,所以导致outputHeight * outputWidth结果溢出,表现为很大的值:
```
size_t outputHeight = 1 + (inputHeight + 2 * paddingH() - blockH() + strideH() - 1) / strideH();
```想问一下,使用fluid怎么获取中间层的特征图信息,需要使用什么api具体使用什么api,直接在定义网络的时候print并不能得到任何关于shape的信息
想问一下,使用fluid怎么获取中间层的特征图信息,需要使用什么api具体使用什么api,直接在定义网络的时候print并不能得到任何关于shape的信息
想问一下,使用fluid怎么获取中间层的特征图信息,需要使用什么api具体使用什么api,直接在定义网络的时候print并不能得到任何关于shape的信息
可以在executor.run或者parallel_executor.run中fetch,将对应的输出过来。
http://paddlepaddle.org/documentation/docs/zh/0.15.0/new_docs/user_guides/howto/training/single_node.html#id6