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

Reshape returning NoneType #41

Open
ManiSadati opened this issue Nov 16, 2020 · 1 comment
Open

Reshape returning NoneType #41

ManiSadati opened this issue Nov 16, 2020 · 1 comment
Assignees

Comments

@ManiSadati
Copy link

We've experienced an error during testing a CapsuleNet implementation and it gives this error:
ERROR:root:Encountered exception exceptions.TypeError: injectFaultPack() takes exactly 2 arguments (3 given) [[Node: fi_import/primarycap_reshape/Reshape/shape = PyFunc[Tin=[DT_INT32, DT_INT32, DT_INT32], Tout=[DT_INT32], token="pyfunc_359", _device="/job:localhost/replica:0/task:0/cpu:0"](fi_import/primarycap_reshape/strided_slice, import/primarycap_reshape/Reshape/shape/1, import/primarycap_reshape/Reshape/shape/2)]]

see the tensorboard graph of this part:

image

the code for this part is
outputs = keras.layers.Reshape(target_shape=[-1, 8], name='primarycap_reshape')(output)

we changed the graph to tensorflow graph in order to run it on session for tensorfi using this.

Is there any way we can solve this problem?

@zitaoc
Copy link
Collaborator

zitaoc commented Nov 19, 2020

Based on the error msg, it seems like the error might come from the injectFaultPack() function within injectFault.py. It says the function is accepting 3 arguments but only 2 are written in the code. Note that this function is NOT implemented correctly and there is FIXME notice in the code. So you'll have to implement this function first before running it through.

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

2 participants