![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
weixin_39287090
这个作者很懒,什么都没留下…
展开
-
tf.multiply
1.tf.multiply()两个矩阵中对应元素各自相乘格式: tf.multiply(x, y, name=None)参数:x: 一个类型为:half, float32, float64, uint8, int8, uint16, int16, int32, int64, complex64, complex128的张量。y: 一个类型跟张量x相同的张量。返回值: x * y elem...原创 2019-05-28 16:07:09 · 1498 阅读 · 0 评论 -
tf.boolean_mask使用方法
tensorflow里的一个函数,boolean_mask(a,b) 将使a (m维)矩阵仅保留与b中“True”元素同下标的部分。在做目标检测(YOLO)时常常用到。“”"Apply boolean mask to tensor. Numpy equivalent is tensor[mask].# 1-D exampletensor = [0, 1, 2, 3]mask = np.a...转载 2019-05-24 10:23:30 · 537 阅读 · 0 评论