Closed gyang274 closed 6 years ago
In capsnet_em.py em_routing():
r = tf.constant(np.ones([batch_size, caps_num_i, caps_num_c], dtype=np.float32) / 32)
should this be:
r = tf.constant(np.ones([batch_size, caps_num_i, caps_num_c], dtype=np.float32) / caps_num_c)
as in paper:
∀i, c: Ric ← 1/size(L + 1)
Hi, @gyang274
Thanks for spotting a mistake! The code is fixed as you suggested.
Regards!
In capsnet_em.py em_routing():
should this be:
as in paper: