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

Method _dynamic_routingV1

code/CapsNet.py:156–194  ·  view source on GitHub ↗

doing dynamic routing with for loop as static implementation :arg proir: log prior for scaling with shape [10, num_caps] cap_prediction: predictions from layer below with shape [None, 10, num_caps, 16] :return digit_caps: digit capsules wi

(self, prior, cap_predictions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_dynamic_routingMethod · 0.95

Calls 1

squashFunction · 0.90

Tested by

no test coverage detected