-
Notifications
You must be signed in to change notification settings - Fork 266
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
Cannot use GPU when output.shape[1] * nnz(a) > 2^31 #51
Comments
I meet this problem too ! |
hello, do you solve it? can you share your method? thanks |
No |
You can run your code on CPU.
…------------------ 原始邮件 ------------------
发件人: "Horace"<notifications@github.com>;
发送时间: 2019年12月14日(星期六) 中午11:06
收件人: "tkipf/keras-gcn"<keras-gcn@noreply.github.com>;
抄送: "kui"<1548366814@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [tkipf/keras-gcn] Cannot use GPU when output.shape[1] * nnz(a) > 2^31 (#51)
hello, do you solve it? can you share your method? thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Is there any solution on this issue? |
@innekemayachita Have you found anything maybe? |
You can cast the sparse matrix to dense matrix and use tf.matmul |
Same problem here. |
But if we have a large matrix with most of zero, we would like to use sparse matrix, so shouldn't cast to dense matrix |
I had this problem on tensorflow 2.4.1, it went away when I upgraded to 2.5 + cuda lib v11; I don't know if the trouble was with the tensorflow version, cuda, or both. |
When I use the gcn layer, I always meets this problem.
InvalidArgumentError: 2 root error(s) found.
(0) Invalid argument: Cannot use GPU when output.shape[1] * nnz(a) > 2^31
[[node graph_convolution_23/SparseTensorDenseMatMul/SparseTensorDenseMatMul (defined at /home/labadmin/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py:1083) ]]
[[loss_3/add_2/_677]]
(1) Invalid argument: Cannot use GPU when output.shape[1] * nnz(a) > 2^31
[[node graph_convolution_23/SparseTensorDenseMatMul/SparseTensorDenseMatMul (defined at /home/labadmin/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py:1083) ]]
0 successful operations.
0 derived errors ignored.
The text was updated successfully, but these errors were encountered: