def METHOD_NAME(x, weight, bias, add_to_output):
    return flow._C.add(
        flow._C.bias_add(
            flow._C.matmul(x, weight, transpose_b=True), bias, axis=len(x.shape) - 1
        ),
        add_to_output,
    )