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

Function BNReLU

tensorpack/models/nonlin.py:69–82  ·  view source on GitHub ↗

A shorthand of BatchNormalization + ReLU. Args: x (tf.Tensor): the input name: deprecated, don't use.

(x, name=None)

Source from the content-addressed store, hash-verified

67
68@layer_register(use_scope=None)
69def BNReLU(x, name=None):
70 """
71 A shorthand of BatchNormalization + ReLU.
72
73 Args:
74 x (tf.Tensor): the input
75 name: deprecated, don't use.
76 """
77 if name is not None:
78 log_deprecated("BNReLU(name=...)", "The output tensor will be named `output`.")
79
80 x = BatchNorm('bn', x)
81 x = tf.nn.relu(x, name=name)
82 return x

Callers 8

apply_preactivationFunction · 0.90
preact_groupFunction · 0.90
apply_preactivationFunction · 0.90
preact_groupFunction · 0.90
generatorMethod · 0.85
preactivation_blockFunction · 0.85
residualMethod · 0.85
build_graphMethod · 0.85

Calls 2

log_deprecatedFunction · 0.85
BatchNormFunction · 0.70

Tested by

no test coverage detected