![](/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.