TensorFlow 学习:tensor.get_shape() 与 tf.shape(a)
2018-03-05 16:18
477 查看
TensorFlow 学习:tensor.get_shape() 与 tf.shape(a)
两者相同在于都能得到一个tensor的shape。不同点:
1.使用对象:get_shape()只能是tensor作为使用对象,shape()的对象a可以是tensor, list, array
2.返回值:get_shape()返回一个tuple,shape()返回一个tensor
相关文章推荐
- TensorFlow教程——获取Tensor的维度(tf.shape(x)、x.shape和x.get_shape()的区别)
- TensorFlow学习--tf.add_to_collection与tf.get_collection使用
- tensorflow学习笔记--tf.get_variable、tf.Variable
- TensorFlow 学习(一)—— tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()
- tf.reshape和tf.Tensor.get_shape()
- TensorFlow 学习(一)—— tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()
- TensorFlow学习--tf.get_variable使用
- 17、Tensorflow:tf.shape(xxx) vs. xxx.get_shape()
- tensorflow学习——tf.get_collection(), tf.identity()
- 【tensorflow 学习】tf.get_variable()和tf.Variable()的区别
- tensorflow学习笔记(九):tf.shape()与tensor.get_shape()
- Tensorflow API 学习(2)-tf.shape(a)和a.get_shape()
- Tensorflow -tf.shape(a)和a.get_shape()
- TensorFlow--tf.get_variable
- TensorFlow学习笔记(5)----TF生成数据的方法
- TensorFlow学习笔记之tf.nn.softmax()与tf.nn.softmax_cross_entropy_with_logits的用法
- TensorFlow学习(十一):保存TFRecord文件
- Tensorflow实战学习(四十二)【TF.Learn、分布式Estimator、深度学习Estimator】
- 学习笔记TF053:循环神经网络,TensorFlow Model Zoo,强化学习,深度森林,深度学习艺术
- TensorFlow学习笔记6----tf.contrib.learn Quickstart