TensorFlow常见函数解析
1、tf.slice(input, begin, slice_dimension)····import tensorflow as tfa = tf.constant([[1, 2, 3], [-1, -2, -2], [3, 2, 1]])sess = tf.InteractiveSession()b = tf.slice(a, [1, 0], [2, 3])#[1, 0]表示从矩阵...