You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: