WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Reshape returning NoneType #41

@ManiSadati

Description

@ManiSadati

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions