![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
Smile@IT小女子
这个作者很懒,什么都没留下…
展开
-
https://blog.csdn.net/weixin_30235225/article/details/95432515
1.简介将数据划分成若干批次的数据,可以使用tf.train或者tf.data.Dataset中的方法。1.1 tf.traintf.train.slice_input_producer(tensor_list,shuffle=True,seed=None,capacity=32)tf.train.batch(tensors,batch_size,num_threads=1,capacity=32,allow_smaller_final_batch=False)参数说明:shuffle:为Tru转载 2020-07-06 16:11:03 · 484 阅读 · 1 评论 -
Tensorflow张量的合并与分割
Tensorflow 张量操作2:合并与分割1、concat合并,不产生新维度唯一的约束是非合并的长度必须一致, 用axis指定需要合并的维度如 :a = tf.random.normal([4,5,8])b = tf.random.normal([6,5,8])c= tf.concat([a,b],axis=0)c : <tf.Tensor: shape=(10, 5, 8)axis指定需要合并的维度...原创 2020-07-06 09:54:18 · 686 阅读 · 1 评论 -
tf.where(input,b,c)
tf.where(a,b,c)函数:当a为true时,tf.where(a,b,c)函数会选择b值输出当a为false时,tf.where(a,b,c)函数会选择c值输出原创 2020-07-03 10:40:41 · 173 阅读 · 0 评论