def _to_channel_first_bias(b):
    """Reshape [c] to [c, 1, 1]."""
    channel_size = int(b.shape[0])
    new_shape = (channel_size, 1, 1)
    # new_shape = [-1, 1, 1]  # doesn't work with tensorRT
    return tf.reshape(b, new_shape)
def _to_channel_first_bias(b):
    """Reshape [c] to [c, 1, 1]."""
    channel_size = int(b.shape[0])
    new_shape = (channel_size, 1, 1)
    # new_shape = [-1, 1, 1]  # doesn't work with tensorRT
    return tf.reshape(b, new_shape)
def _to_channel_first_bias ( b ) : channel_size = int ( b . shape [ 0 ] ) new_shape = ( channel_size , 1 , 1 ) # new_shape = [-1, 1, 1]  # doesn't work with tensorRT return tf . reshape ( b , new_shape )
Reshape [c] to [c, 1, 1].
Reshape [ c ] to [ c 1 1 ] .