摘要:
高级操作函数 功能函数代码根据索引号抽样tf.gather(x,index,axis)根据索引号采集多个样本tf.gather_nd(x,index)掩码采样tf.boolean_mask(x, mask, axis)条件取样tf.where(cond,a,b)刷新张量tf.scatter_nd(i 阅读全文
posted @ 2020-09-03 20:14
kuanleung
阅读(27)
评论(0)
推荐(0)
摘要:
填充与复制 功能函数代码填充tf.pad(x,padding)复制tf.tile(x,multiples)限幅tf.maximum(x, a),tf.minimum(x, a) 填充 tf.pad(x,padding)padding 以列表形式传入paddings 是包含了多个[Left Paddi 阅读全文
posted @ 2020-09-03 13:54
kuanleung
阅读(34)
评论(0)
推荐(0)
摘要:
张量比较 功能函数代码输出转换为概率tf.nn.softmax(x, axis)张量是否相等tf.equal(a, b)或 tf.math.equal(a,b)大于tf.math.greater小于tf.math.less大于等于tf.math.greater_equal小于等于tf.math.le 阅读全文
posted @ 2020-09-03 12:36
kuanleung
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号