The multiplication counter part of tf.nn.bias_add.
(x, b, data_format)
| 88 | |
| 89 | |
| 90 | def _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 | |
| 100 | def _bias_add(x, b, data_format): |
no outgoing calls
no test coverage detected
searching dependent graphs…