MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / BNLReLU

Function BNLReLU

examples/GAN/Image2Image.py:42–44  ·  view source on GitHub ↗
(x, name=None)

Source from the content-addressed store, hash-verified

40
41
42def BNLReLU(x, name=None):
43 x = BatchNorm('bn', x)
44 return tf.nn.leaky_relu(x, alpha=0.2, name=name)
45
46
47def visualize_tensors(name, imgs, scale_func=lambda x: (x + 1.) * 128., max_outputs=1):

Callers

nothing calls this directly

Calls 1

BatchNormFunction · 0.50

Tested by

no test coverage detected