MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / depthwise_conv_block

Function depthwise_conv_block

tensorlayer/models/mobilenetv1.py:32–37  ·  view source on GitHub ↗
(n, n_filter, strides=(1, 1), name="depth_block")

Source from the content-addressed store, hash-verified

30
31
32def depthwise_conv_block(n, n_filter, strides=(1, 1), name="depth_block"):
33 n = DepthwiseConv2d((3, 3), strides, b_init=None, name=name + '.depthwise')(n)
34 n = BatchNorm(decay=0.99, act=tf.nn.relu6, name=name + '.batchnorm1')(n)
35 n = Conv2d(n_filter, (1, 1), (1, 1), b_init=None, name=name + '.conv')(n)
36 n = BatchNorm(decay=0.99, act=tf.nn.relu6, name=name + '.batchnorm2')(n)
37 return n
38
39
40def restore_params(network, path='models'):

Callers 1

MobileNetV1Function · 0.85

Calls 3

DepthwiseConv2dClass · 0.90
BatchNormClass · 0.90
Conv2dClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…