def _bias_add(x, b, data_format):
if data_format == '<STR_LIT>':<EOL><INDENT>return tf.add(x, b)<EOL><DEDENT>elif data_format == '<STR_LIT>':<EOL><INDENT>return tf.add(x, _to_channel_first_bias(b))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % data_format)<EOL><DEDENT>
Alternative implementation of tf.nn.bias_add which is compatiable with tensorRT.