MCPcopy
hub / github.com/tensorlayer/TensorLayer / conv_block

Function conv_block

tensorlayer/models/mobilenetv1.py:25–29  ·  view source on GitHub ↗
(n, n_filter, filter_size=(3, 3), strides=(1, 1), name='conv_block')

Source from the content-addressed store, hash-verified

23
24
25def conv_block(n, n_filter, filter_size=(3, 3), strides=(1, 1), name='conv_block'):
26 # ref: https://github.com/keras-team/keras/blob/master/keras/applications/mobilenet.py
27 n = Conv2d(n_filter, filter_size, strides, b_init=None, name=name + '.conv')(n)
28 n = BatchNorm(decay=0.99, act=tf.nn.relu6, name=name + '.batchnorm')(n)
29 return n
30
31
32def depthwise_conv_block(n, n_filter, strides=(1, 1), name="depth_block"):

Callers 1

MobileNetV1Function · 0.70

Calls 2

Conv2dClass · 0.90
BatchNormClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…