Skip to content
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

create_capsnet function doesnt work #2

Open
couyang24 opened this issue May 10, 2018 · 7 comments
Open

create_capsnet function doesnt work #2

couyang24 opened this issue May 10, 2018 · 7 comments

Comments

@couyang24
Copy link

Thank you so much for such a cutting edge package! I was trying to run through the sample code for MNIST dataset but when I run the create_capsnet function, it gave me the following error message. Do you know if there is a way to fix it?

Error in py_call_impl(callable, dots$args, dots$keywords) :
RuntimeError: Evaluation error: RuntimeError: Evaluation error: ValueError: Dimension 0 in both shapes must be equal, but are 1 and 1152 for 'r_layer_1/scan/while/MatMul' (op: 'BatchMatMul') with input shapes: [1,10,?,8], [1152,10,8,16].

Detailed traceback:
File "C:\Users\Owen\ANACON1\envs\R-TENS1\lib\site-packages\keras\backend\tensorflow_backend.py", line 1127, in batch_dot
out = tf.matmul(x, y, adjoint_a=adj_x, adjoint_b=adj_y)
File "C:\Users\Owen\ANACON1\envs\R-TENS1\lib\site-packages\tensorflow\python\ops\math_ops.py", line 1861, in matmul
a, b, adj_x=adjoint_a, adj_y=adjoint_b, name=name)
File "C:\Users\Owen\ANACON1\envs\R-TENS1\lib\site-packages\tensorflow\python\ops\gen_math_ops.py", line 708, in _batch_mat_mul
"BatchMatMul", x=x, y=y, adj_x=adj_x, adj_y=adj_y, name=name)
File "C:\Users\Owen\ANACON1\envs\R-TENS1\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "C:\Us

@dfalbel
Copy link
Owner

dfalbel commented May 10, 2018

Sorry, I couldn't reproduce the error in my computer. Can you provide your sessionInfo? You can also try running just the create_capsnet function in a fresh R session.

Thank you for trying it out! It's still somewhat buggy at the moment.

@couyang24
Copy link
Author

couyang24 commented May 10, 2018 via email

@dfalbel
Copy link
Owner

dfalbel commented May 10, 2018

What's your keras version? Can you install the most recent keras from GitHub? devotos::install_github("rstudio/keras")

@couyang24
Copy link
Author

couyang24 commented May 10, 2018 via email

@dfalbel
Copy link
Owner

dfalbel commented May 17, 2018

Sorry for taking long to answer :( Can you tell me your Tensorflow version?

@couyang24
Copy link
Author

Thanks man. I just attached the screenshot to this comment.

image

@SUNBERG010
Copy link

Hi Daniel,
Thank you for your work. However, I also encounter the problem same as Owen Ouyang, my tensorflow version is 1.10, could you please tell me the solution?
Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants