MCPcopy Create free account
hub / github.com/InnerPeace-Wu/CapsNet-tensorflow / _dynamic_routingV2

Method _dynamic_routingV2

code/CapsNet.py:119–154  ·  view source on GitHub ↗

doing dynamic routing with tf.while_loop :arg proir: log prior for scaling with shape [10, num_caps] cap_prediction: predictions from layer below with shape [None, 10, num_caps, 16] num_caps: num_caps :return digit_caps: digit

(self, prior, cap_predictions, num_caps)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_dynamic_routingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected