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

Method _capsule

code/CapsNet.py:39–71  ·  view source on GitHub ↗

compute a capsule, conv op with kernel: 9x9, stride: 2, padding: VALID, output channels: 8 per capsule. As described in the paper. :arg input: input for computing capsule, shape: [None, w, h, c] i_c: input channels o_c: out

(self, input, i_c, o_c, idx)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

squashFunction · 0.90

Tested by

no test coverage detected