Table 3.
Dynamic routing algorithm.
Routing Algorithm | |||
1: Procedure ROUTING (, r, I) 2: For all capsule i in layer I and capsule j in layer (I +1): bij ← 0 3: FOR r iterations DO 4: for all capsule i in layer I: ci ← sotftmax(bi) 5: for all capsule j in layer (I +1): sj ← 6: for all capsule j in layer (I +1): ← squash() 7: for all capsule i in layer I and capsule j in layer (I +1): ← + . 8: Return |