Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

报错 #1

Open
ming0419-star opened this issue Jan 26, 2021 · 0 comments
Open

报错 #1

ming0419-star opened this issue Jan 26, 2021 · 0 comments

Comments

@ming0419-star
Copy link

Using TensorFlow backend.
(?, 10816, 8)
(?, 1, 10816, 8)
(?, 100, 10816, 8)
Traceback (most recent call last):
File "E:/code/A_work_out/HPAN-master/lib/capsule.py", line 158, in
test()
File "E:/code/A_work_out/HPAN-master/lib/capsule.py", line 154, in test
caps2 = DenseCapsule(4, 100)(caps1)
File "E:\cmx\Anaconda\envs\tensorflow\lib\site-packages\keras\engine\topology.py", line 596, in call
output = self.call(inputs, **kwargs)
File "E:/code/A_work_out/HPAN-master/lib/capsule.py", line 140, in call
b_ij = K.zeros(shape=[K.shape(u_hat)[0], self.nb_capsules, self.prev_shape[1]], dtype=np.float32)
File "E:\cmx\Anaconda\envs\tensorflow\lib\site-packages\keras\backend\tensorflow_backend.py", line 600, in zeros
shape = tuple(map(int, shape))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Tensor'

Process finished with exit code 1

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

No branches or pull requests

1 participant