ops.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:LiTeFlow 作者: petrux 项目源码 文件源码
def logical_impl(x, y):  # pylint: disable=I0011,C0103
    """Returns the truth value of x -> y element-wise.

    *NOTE*: `logical_impl` supports broadcasting. More about broadcasting
    [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

    Arguments:
      x: a `Tensor` of type `bool`.
      y: a `Tensor` of type `bool`.

    Returns:
      a `Tensor` of type bool.
    """
    return tf.logical_or(tf.logical_not(x), y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号