![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensoeflow
Zhangppeng
小奋青
展开
-
tf.reshape()
tf.reshape tf.reshape( tensor, shape, name=None ) 例如: 将 1x9矩阵 ==> 3x3矩阵 import tensorflow as tf import numpy as np A = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]) t = tf.reshape...原创 2018-06-05 11:56:57 · 2617 阅读 · 0 评论 -
tf.slice()
tf.slice tf.slice( input_, begin, size, name=None ) 例如: import tensorflow as tf import numpy as np A = np.array([[1, 2, 3, 10], [4, 5, 6, 7], [7, ...原创 2018-06-05 11:57:58 · 639 阅读 · 1 评论 -
tf.shape()
tf.shape tf.shape( input, name=None, out_type=tf.int32 ) 例如: 将矩阵的维度输出为一个维度矩阵 import tensorflow as tf import numpy as np A = np.array([[[1, 1, 1], [2, 2, 2]], ...原创 2018-06-05 12:26:37 · 30525 阅读 · 1 评论