-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capi预测出core,当样本是dense_vector_sequence类型时,请教正确的调用方式 #3969
Comments
请检查一下输入的设置 |
第一个问题已解决,又出现新问题:
机器上有gpu,python训练 和 预测都正常 |
如果需要GPU预测,那么capi需要使用GPU版本的paddle,请检查编译的版本是否正确 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题:当输入样本是sequence,sequence中每一个元素是定长向量时,输入参数如何构造?sequence_start_pos如何构造? 看capi的样例代码没有找到摸索到答案
输入样本类型:
dense_vector_sequence(64)
相关代码:
出core日志:
I0908 11:01:07.981760 22947 Util.cpp:166] commandline:
I0908 11:01:07.983686 22947 GradientMachine.cpp:74] Loading parameters from ./model/param
shape[9,64]
F0908 11:01:07.984719 22947 Matrix.h:262] Check failed: startRow + numRows <= getHeight() (10 vs. 9)
*** Check failure stack trace: ***
@ 0x7f3a3041287d google::LogMessage::Fail()
@ 0x7f3a3041632c google::LogMessage::SendToLog()
@ 0x7f3a304123a3 google::LogMessage::Flush()
@ 0x7f3a3041783e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f3a302ad461 paddle::Matrix::subMatrix()
@ 0x7f3a30297746 paddle::ContextProjectionForward<>()
@ 0x7f3a3029b642 paddle::ContextProjectionForwardFunc<>::calc()
@ 0x7f3a30157c0e paddle::ContextProjection::forward()
@ 0x7f3a301ed41e paddle::MixedLayer::forward()
@ 0x7f3a30289530 paddle::NeuralNetwork::forward()
@ 0x7f3a301404e6 paddle_gradient_machine_forward
@ 0x40321d main
@ 0x7f3a2f16dbd5 __libc_start_main
@ 0x403e99 (unknown)
@ (nil) (unknown)
Aborted (core dumped)
gdb信息:
The text was updated successfully, but these errors were encountered: