tf.gather 实例
来源:互联网 发布:2017年网络知识竞赛 编辑:程序博客网 时间:2024/05/13 18:34
import tensorflow as tftemp = tf.range(0,10)*10 + tf.constant(1,shape=[10])temp2 = tf.gather(temp,[1,5,9])with tf.Session() as sess: print sess.run(temp) print sess.run(temp2)
输出
[ 1 11 21 31 41 51 61 71 81 91]
[11 51 91]
0 0
- tf.gather 实例
- tf.gather和tf.slice
- #tensorflow学习笔记#tf.gather
- tensorflow中embedding_lookup, tf.gather以及tf.nn.embedding_lookup_sparse的理解
- tf.nn.conv2d 实例
- tf.nn.max_pool 实例
- tf.select 实例
- tf.nn.atrous_conv2d 实例
- tf.strided_slice 实例
- tensorflow tf.tile 实例
- tf.one_hot 实例
- tf.where 实例
- tf.where 实例2
- tensorflow tf.stack tf.unstack 实例
- tensorflow tf.split 和 tf.unstack 实例
- tf.segment_sum和tf.unsorted_segment_sum实例
- tensorflow 中tf.gather(params, indices, validate_indices=None, name=None) 函数讲解
- tensorflow tf.layers.dense 实例
- 工作流引擎Activiti使用总结
- 正则的写法
- 单词3
- 欢迎使用CSDN-markdown编辑器
- 查询节点并删除
- tf.gather 实例
- eclipse的Format配置文件xml格式化标准,可直接导入使用ctrl+shift+F
- Android开发-动态获取电视盒子U盘的插拔状态和路径
- github生成密钥
- 近眼测量的硬件方案(1) 已有方案
- 数据立方体与OLAP
- 滥用单例之dispatch_once死锁
- 2016.11.15 HTML5新特性 拖放
- Hadoop 简单介绍