![](/img/trans.png)
[英]How to extract the shape value of a placeholder Tensor in Tensorflow?
[英]How to print the value of shape of the tensor?
我曾经使用过的功能
print tf.shape(image)
输出喜欢
Tensor("Shape:0", shape=(3,), dtype=int32, device=/device:CPU:0)
我想知道形状(例如尺寸)内的值是多少。 如何访问它进行打印?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.