-
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
Prediction with py_paddle and 'use_gpu=1' #330
Comments
You can paste the 475 line of your Matrix.cpp, maybe this function is not supported for gpu now. |
void GpuMatrix::mul(const MatrixPtr a, const MatrixPtr b, real scaleAB, if (a_ptr && b_ptr) { It seems to be the multiplication of matrices by GPU. |
It seems that run the last branch (a_ptr_s && b_ptr_s), but it not supported now. Is your multiplication on sparse-matrix * sparse-matrix? |
It seems so. |
@hedaoyuan when we will support sparse-matrix * sparse-matrix in GPU? |
What kind of model prediction need |
@hedaoyuan My network for test is just as follows:
|
@CrossLee1 your network does not match the error message. The error messages shows that the error is in MixedLayer, but your network config does not have MixedLayer. |
@emailweixu but that is exactly what I use for training(exclude the loss layer) and testing. |
@CrossLee1 Please make sure what network config you used. Just add a print line could be cool print("I'm using this config file") |
reproduced. @wangyang59 is looking at it. |
@CrossLee1 |
@wangyang59
` |
Hi @reyoung @emailweixu class DataProviderWrapperConverter(object): (line 263) |
How to solve this error then? |
fixed by #857 |
fixed by #1482 |
* add reset() * add UT * up 1 * up x * del UT
* Fix import in py3. * Update bert distillation. * Add option to fix embedding in bert distillation. * Fix distillation in adabert searching * Remove unused code
I use the py_paddle for prediction.
If I use this command
swig_paddle.initPaddle("--use_gpu=0")
, everything works find.But when I change
--use_gpu=0
to--use_gpu=1
, error occurs.I1103 13:27:47.719333 4879 Util.cpp:155] commandline: --use_gpu=1
I1103 13:27:50.586648 4879 Util.cpp:130] Calling runInitFunctions
I1103 13:27:50.587080 4879 Util.cpp:143] Call runInitFunctions done.
[WARNING 2016-11-03 13:27:50,601 default_decorators.py:40] please use keyword arguments in paddle config.
I1103 13:27:50.623359 4879 GradientMachine.cpp:123] Loading parameters from ./models/pass-00007/
F1103 13:27:51.092999 4879 Matrix.cpp:475] Not supported
*** Check failure stack trace: ***
@ 0x7fc2ad19d6b8 google::LogMessage::Fail()
@ 0x7fc2ad19d614 google::LogMessage::SendToLog()
@ 0x7fc2ad19cf98 google::LogMessage::Flush()
@ 0x7fc2ad1a003f google::LogMessageFatal::~LogMessageFatal()
@ 0x7fc2acf92c97 paddle::GpuMatrix::mul()
@ 0x7fc2acf1907a paddle::FullMatrixProjection::forward()
@ 0x7fc2acf07766 paddle::MixedLayer::forward()
@ 0x7fc2ace72800 paddle::NeuralNetwork::forward()
@ 0x7fc2ace07cf9 _wrap_GradientMachine_forward
@ 0x7fc2b49645f3 PyEval_EvalFrameEx
@ 0x7fc2b4966685 PyEval_EvalCodeEx
@ 0x7fc2b4962f97 PyEval_EvalFrameEx
@ 0x7fc2b4966685 PyEval_EvalCodeEx
@ 0x7fc2b4962f97 PyEval_EvalFrameEx
@ 0x7fc2b49630c8 PyEval_EvalFrameEx
@ 0x7fc2b4966685 PyEval_EvalCodeEx
@ 0x7fc2b49667bc PyEval_EvalCode
@ 0x7fc2b4990039 PyRun_FileExFlags
@ 0x7fc2b49914a1 PyRun_SimpleFileExFlags
@ 0x7fc2b49a7fa1 Py_Main
@ 0x7fc2b3b9bbd5 __libc_start_main
@ 0x4008d9 (unknown)
@ (nil) (unknown)
Aborted
What is the problem? Thanks~
The text was updated successfully, but these errors were encountered: