I am trying to get output of primary capsule layer in capsule network. According to that I get 1152 number of 8D capsules. Here is one example
[ 0.19123563 -0.11994515 -0.7150253 -0.35917872 -0.02346791 -0.32390958
0.40772104 -0.01656894]
I am finding its magnitude using np.linalg.norm()
. Accordingly magnitude is 0.98143137
.I don't understand how this is calculated.