tensorflow
aofengdaxia
码农。
展开
-
tf.strided_slice的用法和理解
函数的参数如下 def strided_slice(input_, begin, end, strides=None, begin_mask=0, end_mask=0, ellips...原创 2018-09-27 10:11:41 · 5397 阅读 · 1 评论 -
tf.reshape
tf.reshape(tensor, shape, name=None) 具体的理解: 就是把一个tensor重新分配到新的数组中去,进行排列。shape填写一个一纬数组. tensor1 = tf.constant([0,1,2,3,4,5,6,7,8]) r1 = tf.reshape(tensor1,[3,3,1]) r2 = tf.reshape(tensor1,[3,1,3]) #re...原创 2018-09-27 13:55:37 · 1477 阅读 · 0 评论 -
tf.train.string_input_producer
tf.train.string_input_producer( string_tensor, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None, name=None, cancel_op=None ) 把输入的数据进行按照要求排序成一个队列...原创 2018-09-27 14:24:36 · 4640 阅读 · 0 评论