Research Article

Compressed Wavelet Tensor Attention Capsule Network

Table 1

Quantized dynamic routing algorithm.

Algorithm 1Quantized dynamic routing.
Input:
Output:
(1)  compute using the quantized version in equation (21)
(2)  for all capsule i in the primary layer and capsule j in class layer:
(3)  for t iterations do
(4)   for all capsule i in the primary layer and capsule j in the class layer:
(5)   for all capsule j in the class layer: compute the input vector using equation (22)
(6)   for all capsule j in the class layer: compute the output vector using equation (23)
(7)   for all capsule i in the primary layer and capsule j in the class layer:
(8)  Return