(inputs, out_channel=32, name='resblock')
| 14 | |
| 15 | |
| 16 | def 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 |
no outgoing calls
no test coverage detected