tensorflow: tf.reshape探究
2017-06-22 08:29
429 查看
tf.reshape(tensor,shape,name=None)
给定一个tensor,这个操作会返回一个有着跟原tensor一样的值且经过shape重塑过的张量。如果shape中存在值为-1的组成,被计算过的维度总和的大小将保持恒定。尤其是当一个为[-1]的shape被展平为一维,且shape最多只能存在一个-1。
如果shape是一维或者是更高维度,那么这个操作将会返回一个形状为shape,填充满value值的张量。在这种情况下,shape的元素的数量必须与tensor的元素数量一样。
Args | Annotations |
---|---|
tensor | A Tensor. |
shape | A Tensor. Must be one of the following types: int32, int64. Defines the shape of the output tensor. |
name | A name for the operation (optional). |
Returns:
A Tensor. Has the same type as tensor.相关文章推荐
- TensorFlow的reshape操作 tf.reshape
- TensorFlow的reshape操作 tf.reshape
- 180224 tensorflow之tf.reshape()与tf.concat()应用举例
- TensorFlow的reshape操作 tf.reshape
- tensorflow使用张量时的一些注意点tf.concat、tf.reshape、tf.stack
- 【Tensorflow】 tf.assign探究
- tensorflow: tf.add_to_collection 探究
- TensorFlow的reshape操作 tf.reshape
- 1.Tensorflow 之API函数 tf.reshape
- TensorFlow的reshape操作 tf.reshape
- tensorflow的reshape操作tf.reshape()
- 第一阶段-入门详细图文讲解tensorflow1.4 API-tf.reshape
- Tensorflow--tf.reshape
- Tensorflow 中的tf.reshape()理解和操作
- tensorflow: tf.assign探究
- TensorFlow的reshape操作 tf.reshape
- 【Tensorflow】tf.reshape 函数
- 【tensorFlow】tf.reshape()报错信息 - TypeError: Expected binary or unicode string, got -1
- tensorflow:tf.reduce_mean()和tf.reduce_sum()
- tensorflow--tf.Various()