MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / nonlin

Function nonlin

examples/FasterRCNN/modeling/backbone.py:71–73  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

69 freeze (bool): whether to freeze all the variables under the scope
70 """
71 def nonlin(x):
72 x = get_norm()(x)
73 return tf.nn.relu(x)
74
75 with argscope([Conv2D, MaxPooling, BatchNorm], data_format='channels_first'), \
76 argscope(Conv2D, use_bias=False, activation=nonlin,

Callers 3

activateMethod · 0.85
activateMethod · 0.85
activateMethod · 0.85

Calls 1

get_normFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…