上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 75 下一页
摘要: 目录 Outline pad Image padding tile tile VS broadcast_to Outline pad tile broadcast_to pad [3] [[1,2]] [6] [2,2] [[0,1][1,1]] # [行,列] [3,4] import tenso 阅读全文
posted @ 2020-12-11 22:46 ABDM 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 目录 Outline Sort/argsort 一维 二维 Top_k Top_one Top-k accuracy 示例 Outline Sort/argsort Topk Top-5 Acc. Sort/argsort 一维 import tensorflow as tf a = tf.rand 阅读全文
posted @ 2020-12-11 22:44 ABDM 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 目录 Outline Vector norm Eukl. Norm L1 Norm reduce_min/max/mean argmax/argmin tf.equal Accuracy tf.unique Outline tf.norm tf.reduce_min/max/mean tf.argm 阅读全文
posted @ 2020-12-11 22:42 ABDM 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 目录Merge and splitconcatAlong distinct dim/axisstack: create new dimDim mismatchUnstackSplit Merge and split tf.concat tf.split tf.stack tf.unstack con 阅读全文
posted @ 2020-12-11 22:40 ABDM 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 目录 手写数字识别流程 前向传播(张量)- 实战 手写数字识别流程 MNIST手写数字集7000*10张图片 60k张图片训练,10k张图片测试 每张图片是28*28,如果是彩色图片是28*28*3 0-255表示图片的灰度值,0表示纯白,255表示纯黑 打平28*28的矩阵,得到28*28=784 阅读全文
posted @ 2020-12-11 22:38 ABDM 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 目录 Outline Operation type +-*/%// tf.math.log, tf.exp pow, sqrt @, matmul With broadcasting Y = X@W +b Outline +-*/ **,pow,square sqrt //,% exp,log @, 阅读全文
posted @ 2020-12-11 22:37 ABDM 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 目录BroadcastingKey ideaHow to understand?Why broadcasting?Broadcastable?Broadcast VS Tile Broadcasting expand(扩展数据) without copying data(不复制数据) tf.broa 阅读全文
posted @ 2020-12-11 22:35 ABDM 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 目录TensorFlow2-维度变换Outline(大纲)图片视图First Reshape(重塑视图)Second Reshape(恢复视图)Transpose(转置)Expand_dims(增加维度)Squeeze(挤压维度) TensorFlow2-维度变换 Outline(大纲) shape 阅读全文
posted @ 2020-12-11 22:33 ABDM 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 目录 索引和切片 索引 numpy [ ] 索引 numpy : 索引 切片 一维切片 多维切片 步长::step 倒序::-1 省略号... Selective Indexing gather gather_nd boolean_mask 索引和切片 索引 numpy [ ] 索引 import 阅读全文
posted @ 2020-12-11 22:32 ABDM 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 目录创建Tensornumpy, listnumpylistzeros, ones, fillzerosonesfillrandom打乱idx后,a和b的索引不变constantloss计算无bias的loss 创建Tensor * from numpy, list * zeros, ones, f 阅读全文
posted @ 2020-12-11 22:31 ABDM 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 75 下一页