MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / _bias_scale

Function _bias_scale

tensorlayer/layers/normalization.py:90–97  ·  view source on GitHub ↗

The multiplication counter part of tf.nn.bias_add.

(x, b, data_format)

Source from the content-addressed store, hash-verified

88
89
90def _bias_scale(x, b, data_format):
91 """The multiplication counter part of tf.nn.bias_add."""
92 if data_format == 'NHWC':
93 return x * b
94 elif data_format == 'NCHW':
95 return x * b
96 else:
97 raise ValueError('invalid data_format: %s' % data_format)
98
99
100def _bias_add(x, b, data_format):

Callers 1

batch_normalizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…