深度学习2.0-3.tensorflow的基础操作之索引与切片
文章目录
- 1.索引与切片
- 1.Basic indexing
- 2.Numpy-style indexing
- 3. start:end-单冒号
- 4.省略号...代替多个冒号
- 2.Selective Indexing
- 1.tf.gather
- 2.tf.gather_nd
- 3.tf.boolean_mask-bool
1.索引与切片
1.Basic indexing
[idx][idx][idx]...
2.Numpy-style indexing
3. start:end-单冒号
Indexing by:表示将某一个维度都选取
Indexing by ::加一个步长
4.省略号…代替多个冒号
2.Selective Indexing
1.tf.gather
2.tf.gather_nd
将最内层的括号当成联合索引的坐标
3.tf.boolean_mask-bool
深度学习2.0-3.tensorflow的基础操作之索引与切片相关推荐
- 深度学习(7)TensorFlow基础操作三: 索引与切片
深度学习(7)TensorFlow基础操作三: 索引与切片 一. 基础索引 1. Basic indexing 2. Numpy-style indexing 3. start : end 4. 切片 ...
- 深度学习(15)TensorFlow高阶操作四: 填充与复制
深度学习(15)TensorFlow高阶操作四: 填充与复制 1. Pad 2. 常用于Image Padding 3. tile 4. tile VS broadcast_to Outline pa ...
- 深度学习(17)TensorFlow高阶操作六: 高阶OP
深度学习(17)TensorFlow高阶操作六: 高阶OP 1. Where(tensor) 2. where(cond, A, B) 3. 1-D scatter_nd 4. 2-D scatter ...
- 深度学习(16)TensorFlow高阶操作五: 张量限幅
深度学习(16)TensorFlow高阶操作五: 张量限幅 1. clip_by_value 2. relu 3. clip_by_norm 4. Gradient clipping 5. 梯度爆炸实 ...
- 深度学习(14)TensorFlow高阶操作三: 张量排序
深度学习(14)TensorFlow高阶操作三: 张量排序 一. Sort, argsort 1. 一维Tensor 2. 多维Tensor 二. Top_k 三. Top-k accuracy(To ...
- 深度学习(12)TensorFlow高阶操作一: 合并与分割
深度学习(12)TensorFlow高阶操作一: 合并与分割 1. concat 2. stack: create new dim 3. Dim mismatch 4. unstuck 5. spli ...
- 深度学习(11)TensorFlow基础操作七: 向前传播(张量)实战
深度学习(11)TensorFlow基础操作七: 向前传播(张量)实战 1. 导包 2. 加载数据集 3. 转换数据类型 4. 查看x.shape, y.shape, x.dtype, y.dtype ...
- 深度学习(10)TensorFlow基础操作六: 数学运算
深度学习(10)TensorFlow基础操作六: 数学运算 1. Operation type 2. + - * / % // 3. tf.math.log & tf.exp 4. log2, ...
- 深度学习(9)TensorFlow基础操作五: Broadcasting
深度学习(9)TensorFlow基础操作五: Broadcasting 1. 操作思想 2. 具体例子 3. 理解 (1) How to understand? (2) Why Broadcasti ...
- 深度学习(8)TensorFlow基础操作四: 维度变换
深度学习(8)TensorFlow基础操作四: 维度变换 1. View 2. 示例 3. Reshape操作可能会导致潜在的bug 4. tf.transpose 5. Squeeze VS Exp ...
最新文章
- python可以干嘛用-Python可以被用来做哪些神奇好玩的事情
- Jerasure库接口简介及性能测试
- 安卓开发之路-浅识Android
- gatewayproperties 是空_一个空手套白狼的商业模式
- 1581: 统计成绩-一题简单的坑题
- mysql基本架构_MySQL的基本架构
- Python-PIL
- linux mysql df_Linux基础:df命令总结
- linux中eclipse不运行,linux下启动不了eclipse
- python tuple
- 易语言linux静态编译失败,易语言静态编译连接失败
- Eclipse 编辑代码字体的设置
- 微软苏州集体抵制来自阿里、华为的跳槽者:请停止你的“奋斗逼”行为!网友:看到 955 不加班的公司名单,我酸了...
- 2022 年 8 款最佳待办事项列表应用程序
- 交通安全精华主题汇总(至2023年01月29日)
- React Native桥接器初探
- 如何在给虚拟机设置静态IP
- Vue 官方成员 Hcy:怎么才能有尤雨溪一半强,该怎么学习?
- LeetCode题解:x的平方根
- 数理统计与统计软件测试卷,数理统计试题及答案