A shorthand of BatchNormalization + ReLU. Args: x (tf.Tensor): the input name: deprecated, don't use.
(x, name=None)
| 67 | |
| 68 | @layer_register(use_scope=None) |
| 69 | def 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 |
no test coverage detected