1: |
procedure Routing
|
2: |
for all capsule types at position (x,y) and capsule type at position (x, y): . |
3: |
for
d iterations do
|
4: |
for all capsule types at position (x,y): ⊳softmax computes Eq. 7
|
5: |
for all capsule types at position
|
6: |
for all capsule types at position ⊳ squash computes Eq. 8
|
7: |
for all capsule types and all capsule types
|
|
return
|