MCPcopy Create free account
hub / github.com/SystemErrorWang/White-box-Cartoonization / resblock

Function resblock

train_code/network.py:16–26  ·  view source on GitHub ↗
(inputs, out_channel=32, name='resblock')

Source from the content-addressed store, hash-verified

14
15
16def resblock(inputs, out_channel=32, name='resblock'):
17
18 with tf.variable_scope(name):
19
20 x = slim.convolution2d(inputs, out_channel, [3, 3],
21 activation_fn=None, scope='conv1')
22 x = tf.nn.leaky_relu(x)
23 x = slim.convolution2d(x, out_channel, [3, 3],
24 activation_fn=None, scope='conv2')
25
26 return x + inputs
27
28
29

Callers 2

generatorFunction · 0.70
unet_generatorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected