Description Usage Arguments Value
Apply Conv2D 'n_channels' times and concatenate all capsules
1 | primary_cap(inputs, dim_vector, n_channels, kernel_size, strides, padding)
|
inputs |
4D tensor, shape=[None, width, height, channels] |
dim_vector |
the dim of the output vector of capsule |
n_channels |
the number of types of capsules |
kernel_size |
kernel size for convoltions |
strides |
strides for convolution |
padding |
padding for convolutions |
output tensor, shape=[None, num_capsule, dim_vector]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.