So the routing algorithm computes the poses of output capsules and the connections between capsules of consecutive layers. The coupling coefficients are computed dynamically by the routing algorithm and they are dependent on the input [1]}.
The coupling coefficients are determined by a “routing softmax” activation function, whose initial logits \(b_{ij}\)  are the log prior probabilities the \(i\) -th capsule should be coupled to the \(j\) -th one
\(c_{ij} = \textrm {softmax}(b_{ij}) = \frac{e^{b_{ij}}}{\sum \limits _{k}. e^{b_{ik}}} \\\) 
